A386182 Primes having only {3, 5, 7, 9} as digits.
3, 5, 7, 37, 53, 59, 73, 79, 97, 337, 353, 359, 373, 379, 397, 557, 577, 593, 599, 733, 739, 757, 773, 797, 937, 953, 977, 997, 3359, 3373, 3533, 3539, 3557, 3559, 3593, 3733, 3739, 3779, 3793, 3797, 5333, 5393, 5399, 5557, 5573, 5737, 5779, 5939, 5953, 7333
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 5, 7, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{3, 5, 7, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [3, 5, 7, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("3579"), 41))) # uses function/imports in A385776