A386351 Primes without {5, 7} as digits.
2, 3, 11, 13, 19, 23, 29, 31, 41, 43, 61, 83, 89, 101, 103, 109, 113, 131, 139, 149, 163, 181, 191, 193, 199, 211, 223, 229, 233, 239, 241, 263, 269, 281, 283, 293, 311, 313, 331, 349, 383, 389, 401, 409, 419, 421, 431, 433, 439, 443, 449, 461, 463, 491, 499
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 1, 2, 3, 4, 6, 8, 9]];
-
Mathematica
Select[Prime[Range[120]], DigitCount[#, 10, 5] == 0 && DigitCount[#, 10, 7] == 0 &]
-
PARI
primes_with(, 1, [0, 1, 2, 3, 4, 6, 8, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("01234689"), 41))) # uses function/imports in A385776