A386144 Primes having only {2, 3, 5, 6} as digits.
2, 3, 5, 23, 53, 223, 233, 263, 353, 523, 563, 653, 2333, 2633, 2663, 3253, 3323, 3533, 3623, 5233, 5323, 5333, 5563, 5623, 5653, 6263, 6323, 6353, 6553, 6563, 6653, 23333, 23563, 23623, 23633, 23663, 25253, 25523, 25633, 26263, 26633, 32233, 32323, 32353, 32363
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 3, 5, 6]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{2, 3, 5, 6}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [2, 3, 5, 6]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("2356"), 41))) # uses function/imports in A385776