A386176 Primes having only {3, 4, 7, 8} as digits.
3, 7, 37, 43, 47, 73, 83, 337, 347, 373, 383, 433, 443, 487, 733, 743, 773, 787, 877, 883, 887, 3343, 3347, 3373, 3433, 3733, 3833, 3847, 3877, 4337, 4373, 4447, 4483, 4733, 4783, 4787, 4877, 7333, 7433, 7477, 7487, 7873, 7877, 7883, 8377, 8387, 8443, 8447, 8737
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 4, 7, 8]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{3, 4, 7, 8}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [3, 4, 7, 8]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("3478"), 41))) # uses function/imports in A385776