login
A385772
Primes having only {0, 8, 9} as digits.
6
89, 809, 8009, 8089, 8999, 80809, 80909, 80989, 89009, 89809, 89899, 89909, 89989, 90089, 90989, 98009, 98809, 98899, 98909, 98999, 99089, 99809, 99989, 800089, 800909, 800999, 809909, 880909, 888809, 888989, 889909, 890809, 890999, 898889, 899009, 900089
OFFSET
1,1
EXAMPLE
8999 is a term because it is prime and has only {0,8,9} as digits.
MATHEMATICA
Select[FromDigits/@Tuples[{0, 8, 9}, 5], PrimeQ]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 8, 9]];
(Python) print(list(islice(primes_with("089"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [0, 8, 9]) \\ uses function in A385776
CROSSREFS
Subsequence of A030433.
Sequence in context: A069764 A053580 A239719 * A290314 A103548 A241700
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 09 2025
STATUS
approved