login
A386357
Primes without {7, 8} as digits.
1
2, 3, 5, 11, 13, 19, 23, 29, 31, 41, 43, 53, 59, 61, 101, 103, 109, 113, 131, 139, 149, 151, 163, 191, 193, 199, 211, 223, 229, 233, 239, 241, 251, 263, 269, 293, 311, 313, 331, 349, 353, 359, 401, 409, 419, 421, 431, 433, 439, 443, 449, 461, 463, 491, 499, 503
OFFSET
1,1
MATHEMATICA
Select[Prime[Range[120]], DigitCount[#, 10, 7] == 0 && DigitCount[#, 10, 8] == 0 &]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 1, 2, 3, 4, 5, 6, 9]];
(Python) print(list(islice(primes_with("01234569"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [0, 1, 2, 3, 4, 5, 6, 9]) \\ uses function in A385776
CROSSREFS
Intersection of A038615 and A038616.
Sequence in context: A153135 A038615 A386325 * A386354 A386347 A280930
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 20 2025
STATUS
approved