A386098 Primes having only {1, 2, 5, 9} as digits.
2, 5, 11, 19, 29, 59, 151, 191, 199, 211, 229, 251, 521, 599, 911, 919, 929, 991, 1129, 1151, 1229, 1259, 1291, 1511, 1559, 1951, 1999, 2111, 2129, 2221, 2251, 2521, 2551, 2591, 2999, 5119, 5519, 5521, 5591, 9151, 9199, 9221, 9511, 9521, 9551, 9929, 11119, 11159
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 2, 5, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{1, 2, 5, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [1, 2, 5, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("1259"), 41))) # uses function/imports in A385776