A386358 Primes without {7, 9} as digits.
2, 3, 5, 11, 13, 23, 31, 41, 43, 53, 61, 83, 101, 103, 113, 131, 151, 163, 181, 211, 223, 233, 241, 251, 263, 281, 283, 311, 313, 331, 353, 383, 401, 421, 431, 433, 443, 461, 463, 503, 521, 523, 541, 563, 601, 613, 631, 641, 643, 653, 661, 683, 811, 821, 823
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 1, 2, 3, 4, 5, 6, 8]];
-
Mathematica
Select[Prime[Range[120]], DigitCount[#, 10, 7] == 0 && DigitCount[#, 10, 9] == 0 &]
-
PARI
primes_with(, 1, [0, 1, 2, 3, 4, 5, 6, 8]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("01234568"), 41))) # uses function/imports in A385776