A386133 Primes having only {1, 5, 7, 9} as digits.
5, 7, 11, 17, 19, 59, 71, 79, 97, 151, 157, 179, 191, 197, 199, 557, 571, 577, 599, 719, 751, 757, 797, 911, 919, 971, 977, 991, 997, 1117, 1151, 1171, 1511, 1559, 1571, 1579, 1597, 1759, 1777, 1951, 1979, 1997, 1999, 5119, 5171, 5179, 5197, 5519, 5557, 5591
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 5, 7, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{1, 5, 7, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [1, 5, 7, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("1579"), 41))) # uses function/imports in A385776