close
login
A386041
Primes having only {0, 2, 3, 4} as digits.
1
2, 3, 23, 43, 223, 233, 433, 443, 2003, 2203, 2243, 2333, 2423, 3023, 3203, 3323, 3343, 3433, 4003, 4243, 4423, 20023, 20233, 20323, 20333, 20443, 22003, 22303, 22343, 22433, 23003, 23203, 23333, 24023, 24043, 24203, 24223, 24443, 30203, 30223, 30323, 30403, 32003
OFFSET
1,1
MATHEMATICA
Select[FromDigits/@Tuples[{0, 2, 3, 4}, 5], PrimeQ]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 2, 3, 4]];
(Python) print(list(islice(primes_with("0234"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [0, 2, 3, 4]) \\ uses function in A385776
CROSSREFS
Supersequence of A199342, A260125.
Sequence in context: A090708 A359406 A386140 * A199342 A262838 A120366
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 15 2025
EXTENSIONS
Mathematica program corrected by Harvey P. Dale, Dec 05 2025
STATUS
approved