A386178 Primes having only {3, 5, 6, 7} as digits.
3, 5, 7, 37, 53, 67, 73, 337, 353, 367, 373, 557, 563, 577, 653, 673, 677, 733, 757, 773, 3373, 3533, 3557, 3637, 3673, 3677, 3733, 3767, 5333, 5557, 5563, 5573, 5653, 5657, 5737, 6337, 6353, 6367, 6373, 6553, 6563, 6577, 6637, 6653, 6673, 6733, 6737, 6763, 7333
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 5, 6, 7]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{3, 5, 6, 7}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [3, 5, 6, 7]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("3567"), 41))) # uses function/imports in A385776