A386141 Primes having only {2, 3, 4, 7} as digits.
2, 3, 7, 23, 37, 43, 47, 73, 223, 227, 233, 277, 337, 347, 373, 433, 443, 727, 733, 743, 773, 2237, 2243, 2273, 2333, 2347, 2377, 2423, 2437, 2447, 2473, 2477, 2777, 3323, 3343, 3347, 3373, 3433, 3727, 3733, 4243, 4273, 4327, 4337, 4373, 4423, 4447, 4723, 4733
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 3, 4, 7]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{2, 3, 4, 7}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [2, 3, 4, 7]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("2347"), 41))) # uses function/imports in A385776