A386179 Primes having only {3, 5, 6, 8} as digits.
3, 5, 53, 83, 353, 383, 563, 653, 683, 853, 863, 883, 3533, 3583, 3833, 3853, 3863, 5333, 5563, 5653, 5683, 6353, 6553, 6563, 6653, 6833, 6863, 6883, 8353, 8363, 8563, 8663, 8863, 33353, 33533, 33563, 33863, 35353, 35363, 35533, 35863, 36353, 36383, 36563, 36583
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 5, 6, 8]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{3, 5, 6, 8}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [3, 5, 6, 8]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("3568"), 41))) # uses function/imports in A385776