A386134 Primes having only {1, 5, 8, 9} as digits.
5, 11, 19, 59, 89, 151, 181, 191, 199, 599, 811, 859, 881, 911, 919, 991, 1151, 1181, 1511, 1559, 1811, 1889, 1951, 1999, 5119, 5189, 5519, 5581, 5591, 5851, 5881, 5981, 8111, 8191, 8581, 8599, 8819, 8951, 8999, 9151, 9181, 9199, 9511, 9551, 9811, 9851, 9859
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 5, 8, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{1, 5, 8, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [1, 5, 8, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("1589"), 41))) # uses function/imports in A385776