A386136 Primes having only {1, 6, 7, 9} as digits.
7, 11, 17, 19, 61, 67, 71, 79, 97, 167, 179, 191, 197, 199, 617, 619, 661, 677, 691, 719, 761, 769, 797, 911, 919, 967, 971, 977, 991, 997, 1117, 1171, 1619, 1667, 1669, 1697, 1699, 1777, 1979, 1997, 1999, 6197, 6199, 6619, 6661, 6679, 6691, 6719, 6761, 6779
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 6, 7, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{1, 6, 7, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [1, 6, 7, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("1679"), 41))) # uses function/imports in A385776