login
A385790
Primes having only {2, 8, 9} as digits.
8
2, 29, 89, 229, 829, 929, 2999, 8929, 8999, 9829, 9929, 22229, 28229, 28289, 29989, 82889, 88289, 89899, 89989, 92899, 98299, 98899, 98929, 98999, 99289, 99829, 99929, 99989, 222289, 228299, 228829, 228929, 228989, 282229, 282299, 282889, 288929, 288989, 289889
OFFSET
1,1
MATHEMATICA
Flatten[Table[Select[FromDigits /@ Tuples[{2, 8, 9}, n], PrimeQ], {n, 7}]]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 8, 9]];
(Python) print(list(islice(primes_with("289"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [2, 8, 9]) \\ uses function in A385776
CROSSREFS
Supersequence of A020460, A020472.
Sequence in context: A386167 A386159 A386055 * A253305 A123004 A062618
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 13 2025
STATUS
approved