A386197 Primes having only {5, 6, 7, 9} as digits.
5, 7, 59, 67, 79, 97, 557, 569, 577, 599, 659, 677, 757, 769, 797, 967, 977, 997, 5557, 5569, 5657, 5659, 5669, 5779, 6569, 6577, 6599, 6659, 6679, 6779, 6959, 6967, 6977, 6997, 7559, 7577, 7669, 7699, 7757, 7759, 9677, 9679, 9697, 9767, 9769, 9967, 55579, 55667
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [5, 6, 7, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{5, 6, 7, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [5, 6, 7, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("5679"), 41))) # uses function/imports in A385776