A386128 Primes having only {1, 4, 8, 9} as digits.
11, 19, 41, 89, 149, 181, 191, 199, 419, 449, 491, 499, 811, 881, 911, 919, 941, 991, 1181, 1481, 1489, 1499, 1811, 1889, 1949, 1999, 4111, 4441, 4481, 4889, 4919, 4999, 8111, 8191, 8419, 8819, 8849, 8941, 8999, 9181, 9199, 9419, 9491, 9811, 9941, 9949, 11119
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 4, 8, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{1, 4, 8, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [1, 4, 8, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("1489"), 41))) # uses function/imports in A385776