A386335 Primes without {2, 3} as digits.
5, 7, 11, 17, 19, 41, 47, 59, 61, 67, 71, 79, 89, 97, 101, 107, 109, 149, 151, 157, 167, 179, 181, 191, 197, 199, 401, 409, 419, 449, 457, 461, 467, 479, 487, 491, 499, 509, 541, 547, 557, 569, 571, 577, 587, 599, 601, 607, 617, 619, 641, 647, 659, 661, 677, 691
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 1, 4, 5, 6, 7, 8, 9]];
-
Mathematica
Select[Prime[Range[120]], DigitCount[#, 10, 2] == 0 && DigitCount[#, 10, 3] == 0 &]
-
PARI
primes_with(, 1, [0, 1, 4, 5, 6, 7, 8, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("01456789"), 41))) # uses function/imports in A385776