A386194 Primes having only {4, 6, 7, 9} as digits.
7, 47, 67, 79, 97, 449, 467, 479, 499, 647, 677, 769, 797, 947, 967, 977, 997, 4447, 4649, 4679, 4799, 4967, 4969, 4999, 6449, 6469, 6679, 6779, 6947, 6949, 6967, 6977, 6997, 7477, 7499, 7649, 7669, 7699, 7949, 9467, 9479, 9497, 9649, 9677, 9679, 9697, 9749, 9767
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [4, 6, 7, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{4, 6, 7, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [4, 6, 7, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("4679"), 41))) # uses function/imports in A385776