A386148 Primes having only {2, 3, 6, 8} as digits.
2, 3, 23, 83, 223, 233, 263, 283, 383, 683, 823, 863, 883, 2333, 2383, 2633, 2663, 2683, 2833, 3323, 3623, 3823, 3833, 3863, 6263, 6323, 6823, 6833, 6863, 6883, 8233, 8263, 8363, 8623, 8663, 8863, 22283, 23333, 23623, 23633, 23663, 23833, 26263, 26633, 26683
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 3, 6, 8]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{2, 3, 6, 8}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [2, 3, 6, 8]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("2368"), 41))) # uses function/imports in A385776