login
A386333
Primes without {1, 7} as digits.
1
2, 3, 5, 23, 29, 43, 53, 59, 83, 89, 223, 229, 233, 239, 263, 269, 283, 293, 349, 353, 359, 383, 389, 409, 433, 439, 443, 449, 463, 499, 503, 509, 523, 563, 569, 593, 599, 643, 653, 659, 683, 809, 823, 829, 839, 853, 859, 863, 883, 929, 953, 983, 2003, 2029, 2039
OFFSET
1,1
MATHEMATICA
Select[Prime[Range[120]], DigitCount[#, 10, 1] == 0 && DigitCount[#, 10, 7] == 0 &]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 2, 3, 4, 5, 6, 8, 9]];
(Python) print(list(islice(primes_with("02345689"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [0, 2, 3, 4, 5, 6, 8, 9]) \\ uses function in A385776
CROSSREFS
Intersection of A038603 and A038615.
Sequence in context: A041195 A042141 A122004 * A023231 A034470 A386146
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 19 2025
STATUS
approved