A385793 Primes having only {4, 5, 9} as digits.
5, 59, 449, 499, 599, 4549, 4999, 5449, 9949, 44449, 44549, 44959, 45599, 45949, 45959, 49459, 49499, 49549, 49559, 49999, 54449, 54499, 54559, 54949, 54959, 55949, 59999, 94559, 94949, 94999, 95549, 95959, 99559, 444449, 445499, 449459, 449549, 449959, 455599
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [4, 5, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{4, 5, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [4, 5, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("459"), 41))) # uses function/imports in A385776