login
A386040
Primes having only {0, 1, 8, 9} as digits.
1
11, 19, 89, 101, 109, 181, 191, 199, 809, 811, 881, 911, 919, 991, 1009, 1019, 1091, 1109, 1181, 1801, 1811, 1889, 1901, 1999, 8009, 8011, 8081, 8089, 8101, 8111, 8191, 8819, 8999, 9001, 9011, 9091, 9109, 9181, 9199, 9811, 9901, 10009, 10091, 10099, 10111, 10181
OFFSET
1,1
MATHEMATICA
Select[FromDigits /@ Tuples[{0, 1, 8, 9}, 5], PrimeQ]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 1, 8, 9]];
(Python) print(list(islice(primes_with("0189"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [0, 1, 8, 9]) \\ uses function in A385776
CROSSREFS
Supersequence of A061247, A199329, A385783.
Sequence in context: A107637 A229542 A039365 * A103201 A199338 A385783
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 15 2025
EXTENSIONS
Mathematica program corrected by Harvey P. Dale, Nov 25 2025
STATUS
approved