A385796 Primes having only {4, 8, 9} as digits.
89, 449, 499, 4889, 4999, 8849, 8999, 9949, 44449, 48449, 48889, 48989, 49499, 49999, 84449, 84499, 88499, 89449, 89849, 89899, 89989, 94849, 94889, 94949, 94999, 98849, 98899, 98999, 99989, 444449, 448999, 449989, 484489, 484999, 489449, 489989, 494849, 494899
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [4, 8, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{4, 8, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [4, 8, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("489"), 41))) # uses function/imports in A385776