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.

A386159 Primes having only {2, 4, 8, 9} as digits.

This page as a plain text file.
%I A386159 #6 Jul 18 2025 16:03:13
%S A386159 2,29,89,229,449,499,829,929,2999,4229,4289,4889,4999,8429,8849,8929,
%T A386159 8999,9829,9929,9949,22229,24229,24499,24889,24989,28229,28289,28429,
%U A386159 28499,28949,29429,29989,42299,42499,42829,42899,42929,42989,44249,44449,48299,48449
%N A386159 Primes having only {2, 4, 8, 9} as digits.
%H A386159 Jason Bard, <a href="/A386159/b386159.txt">Table of n, a(n) for n = 1..10000</a>
%H A386159 <a href="/index/Pri#PrimesWithDigits">Index to entries for primes with digits in a given set</a>
%t A386159 Flatten[Table[Select[FromDigits /@ Tuples[{2, 4, 8, 9}, n], PrimeQ], {n, 7}]]
%o A386159 (Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 4, 8, 9]];
%o A386159 (Python) print(list(islice(primes_with("2489"), 41))) # uses function/imports in A385776
%o A386159 (PARI) primes_with(, 1, [2, 4, 8, 9]) \\ uses function in A385776
%Y A386159 Supersequence of A385785, A385790, A385796.
%Y A386159 Cf. A000040, A030433, A385776.
%K A386159 nonn,base,easy
%O A386159 1,1
%A A386159 _Jason Bard_, Jul 18 2025