login
A386335
Primes without {2, 3} as digits.
1
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,1
MATHEMATICA
Select[Prime[Range[120]], DigitCount[#, 10, 2] == 0 && DigitCount[#, 10, 3] == 0 &]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 1, 4, 5, 6, 7, 8, 9]];
(Python) print(list(islice(primes_with("01456789"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [0, 1, 4, 5, 6, 7, 8, 9]) \\ uses function in A385776
CROSSREFS
Intersection of A038604 and A038611.
Sequence in context: A110587 A192281 A191065 * A386133 A271658 A282739
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 19 2025
STATUS
approved