A386140 Primes having only {2, 3, 4, 6} as digits.
2, 3, 23, 43, 223, 233, 263, 433, 443, 463, 643, 2243, 2333, 2423, 2633, 2663, 3323, 3343, 3433, 3463, 3623, 3643, 4243, 4363, 4423, 4463, 4643, 4663, 6263, 6323, 6343, 22343, 22433, 22643, 23333, 23623, 23633, 23663, 24223, 24443, 24623, 26263, 26423, 26633
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 3, 4, 6]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{2, 3, 4, 6}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [2, 3, 4, 6]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("2346"), 41))) # uses function/imports in A385776