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.

A386154 Primes having only {2, 4, 5, 9} as digits.

This page as a plain text file.
%I A386154 #6 Jul 18 2025 05:20:34
%S A386154 2,5,29,59,229,449,499,599,929,2459,2549,2999,4229,4259,4549,4999,
%T A386154 5449,9929,9949,22229,22259,22549,24229,24499,25229,25999,29429,29599,
%U A386154 29959,42299,42499,42929,44249,44449,44549,44959,45259,45599,45949,45959,49429,49459
%N A386154 Primes having only {2, 4, 5, 9} as digits.
%H A386154 Jason Bard, <a href="/A386154/b386154.txt">Table of n, a(n) for n = 1..10000</a>
%H A386154 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386154 Flatten[Table[Select[FromDigits /@ Tuples[{2, 4, 5, 9}, n], PrimeQ], {n, 7}]]
%o A386154 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 4, 5, 9]];
%o A386154 (Python) print(list(islice(primes_with("2459"), 41))) # uses function/imports in A385776
%o A386154 (PARI) primes_with(, 1, [2, 4, 5, 9]) \\ uses function in A385776
%Y A386154 Supersequence of A385785, A385786, A385793.
%Y A386154 Cf. A000040, A030433, A385776.
%K A386154 nonn,base,easy
%O A386154 1,1
%A A386154 _Jason Bard_, Jul 18 2025