A386145 Primes having only {2, 3, 5, 8} as digits.
2, 3, 5, 23, 53, 83, 223, 233, 283, 353, 383, 523, 823, 853, 883, 2333, 2383, 2833, 3253, 3323, 3533, 3583, 3823, 3833, 3853, 5233, 5323, 5333, 8233, 8353, 22283, 22853, 23333, 23833, 25253, 25523, 25583, 28283, 32233, 32323, 32353, 32533, 32833, 33223, 33353
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 3, 5, 8]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{2, 3, 5, 8}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [2, 3, 5, 8]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("2358"), 41))) # uses function/imports in A385776