A386173 Primes having only {3, 4, 6, 7} as digits.
3, 7, 37, 43, 47, 67, 73, 337, 347, 367, 373, 433, 443, 463, 467, 643, 647, 673, 677, 733, 743, 773, 3343, 3347, 3373, 3433, 3463, 3467, 3637, 3643, 3673, 3677, 3733, 3767, 4337, 4363, 4373, 4447, 4463, 4637, 4643, 4663, 4673, 4733, 6337, 6343, 6367, 6373, 6473
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 4, 6, 7]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{3, 4, 6, 7}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [3, 4, 6, 7]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("3467"), 41))) # uses function/imports in A385776