login
A386347
Primes without {4, 7} as digits.
1
2, 3, 5, 11, 13, 19, 23, 29, 31, 53, 59, 61, 83, 89, 101, 103, 109, 113, 131, 139, 151, 163, 181, 191, 193, 199, 211, 223, 229, 233, 239, 251, 263, 269, 281, 283, 293, 311, 313, 331, 353, 359, 383, 389, 503, 509, 521, 523, 563, 569, 593, 599, 601, 613, 619, 631
OFFSET
1,1
MATHEMATICA
Select[Prime[Range[120]], DigitCount[#, 10, 4] == 0 && DigitCount[#, 10, 7] == 0 &]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 1, 2, 3, 5, 6, 8, 9]];
(Python) print(list(islice(primes_with("01235689"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [0, 1, 2, 3, 5, 6, 8, 9]) \\ uses function in A385776
CROSSREFS
Intersection of A038612 and A038615.
Sequence in context: A386325 A386357 A386354 * A280930 A104293 A153002
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 20 2025
STATUS
approved