A386107 Primes having only {1, 3, 4, 7} as digits.
3, 7, 11, 13, 17, 31, 37, 41, 43, 47, 71, 73, 113, 131, 137, 173, 311, 313, 317, 331, 337, 347, 373, 431, 433, 443, 733, 743, 773, 1117, 1171, 1373, 1433, 1447, 1471, 1733, 1741, 1747, 1777, 3137, 3313, 3331, 3343, 3347, 3371, 3373, 3413, 3433, 3733, 4111, 4133
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 3, 4, 7]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{1, 3, 4, 7}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [1, 3, 4, 7]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("1347"), 41))) # uses function/imports in A385776