cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A386161 Primes having only {2, 5, 6, 9} as digits.

This page as a plain text file.
%I A386161 #6 Jul 18 2025 16:03:20
%S A386161 2,5,29,59,229,269,569,599,659,929,2269,2659,2699,2969,2999,5569,5659,
%T A386161 5669,6229,6269,6299,6529,6569,6599,6659,6959,9629,9929,22229,22259,
%U A386161 22669,22699,25229,25969,25999,26669,26699,26959,29269,29569,29599,29629,29669,29959
%N A386161 Primes having only {2, 5, 6, 9} as digits.
%H A386161 Jason Bard, <a href="/A386161/b386161.txt">Table of n, a(n) for n = 1..10000</a>
%H A386161 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386161 Flatten[Table[Select[FromDigits /@ Tuples[{2, 5, 6, 9}, n], PrimeQ], {n, 7}]]
%o A386161 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 5, 6, 9]];
%o A386161 (Python) print(list(islice(primes_with("2569"), 41))) # uses function/imports in A385776
%o A386161 (PARI) primes_with(, 1, [2, 5, 6, 9]) \\ uses function in A385776
%Y A386161 Supersequence of A385786, A385788, A385797.
%Y A386161 Cf. A000040, A030433, A385776.
%K A386161 nonn,base,easy
%O A386161 1,1
%A A386161 _Jason Bard_, Jul 18 2025