A386181 Primes having only {3, 5, 7, 8} as digits.
3, 5, 7, 37, 53, 73, 83, 337, 353, 373, 383, 557, 577, 587, 733, 757, 773, 787, 853, 857, 877, 883, 887, 3373, 3533, 3557, 3583, 3733, 3833, 3853, 3877, 5333, 5387, 5557, 5573, 5737, 5783, 5857, 7333, 7537, 7573, 7577, 7583, 7753, 7757, 7853, 7873, 7877, 7883
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 5, 7, 8]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{3, 5, 7, 8}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [3, 5, 7, 8]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("3578"), 41))) # uses function/imports in A385776