login
A385783
Primes having only {1, 8, 9} as digits.
8
11, 19, 89, 181, 191, 199, 811, 881, 911, 919, 991, 1181, 1811, 1889, 1999, 8111, 8191, 8819, 8999, 9181, 9199, 9811, 11119, 11981, 18119, 18181, 18191, 18199, 18899, 18911, 18919, 19181, 19819, 19889, 19891, 19919, 19991, 81119, 81181, 81199, 81899, 81919
OFFSET
1,1
MATHEMATICA
Flatten[Table[Select[FromDigits /@ Tuples[{1, 8, 9}, n], PrimeQ], {n, 7}]]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 8, 9]];
(Python) print(list(islice(primes_with("189"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [1, 8, 9]) \\ uses function in A385776
CROSSREFS
Supersequence of A020456, A020457, A020472.
Sequence in context: A386040 A103201 A199338 * A043188 A043968 A199329
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 13 2025
STATUS
approved