A386189 Primes having only {4, 5, 6, 9} as digits.
5, 59, 449, 499, 569, 599, 659, 4549, 4649, 4969, 4999, 5449, 5569, 5659, 5669, 6449, 6469, 6569, 6599, 6659, 6949, 6959, 9649, 9949, 44449, 44549, 44699, 44959, 45569, 45599, 45659, 45949, 45959, 46499, 46549, 46559, 46649, 49459, 49499, 49549, 49559, 49669
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [4, 5, 6, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{4, 5, 6, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [4, 5, 6, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("4569"), 41))) # uses function/imports in A385776