A386170 Primes having only {3, 4, 5, 7} as digits.
3, 5, 7, 37, 43, 47, 53, 73, 337, 347, 353, 373, 433, 443, 457, 547, 557, 577, 733, 743, 757, 773, 3343, 3347, 3373, 3433, 3457, 3533, 3547, 3557, 3733, 4337, 4357, 4373, 4447, 4457, 4547, 4733, 5333, 5347, 5437, 5443, 5477, 5557, 5573, 5737, 5743, 7333, 7433
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 4, 5, 7]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{3, 4, 5, 7}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [3, 4, 5, 7]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("3457"), 41))) # uses function/imports in A385776