A386142 Primes having only {2, 3, 4, 8} as digits.
2, 3, 23, 43, 83, 223, 233, 283, 383, 433, 443, 823, 883, 2243, 2333, 2383, 2423, 2833, 2843, 3323, 3343, 3433, 3823, 3833, 4243, 4283, 4423, 4483, 8233, 8243, 8423, 8443, 22283, 22343, 22433, 22483, 23333, 23833, 24223, 24443, 28283, 28433, 28843, 32233, 32323
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 3, 4, 8]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{2, 3, 4, 8}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [2, 3, 4, 8]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("2348"), 41))) # uses function/imports in A385776