login
A385769
Primes having only {0, 5, 9} as digits.
7
5, 59, 509, 599, 5009, 5059, 5099, 9059, 50599, 50909, 55009, 59009, 59509, 59999, 90059, 90599, 95009, 95959, 99559, 500009, 500509, 500909, 505559, 509909, 509959, 550009, 550909, 559099, 590099, 590599, 590959, 599009, 599959, 599999, 900959
OFFSET
1,1
EXAMPLE
5009 is a term because it is prime and has only {0,5,9} as digits.
MATHEMATICA
Select[FromDigits/@Tuples[{0, 5, 9}, 5], PrimeQ]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 5, 9]];
(Python) print(list(islice(primes_with("059"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [0, 5, 9]) \\ uses function in A385776
CROSSREFS
Supersequence of A020468. Cf. A000040, A030433, A385776.
Sequence in context: A385793 A260630 A386078 * A317893 A106105 A178003
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 09 2025
STATUS
approved