login
A385786
Primes having only {2, 5, 9} as digits.
8
2, 5, 29, 59, 229, 599, 929, 2999, 9929, 22229, 22259, 25229, 25999, 29599, 29959, 52259, 52529, 52999, 55229, 55259, 55529, 59929, 59999, 92959, 95929, 95959, 99259, 99529, 99559, 99929, 225299, 225529, 229529, 252559, 255259, 259229, 295259, 522229, 522259
OFFSET
1,1
MATHEMATICA
Flatten[Table[Select[FromDigits /@ Tuples[{2, 5, 9}, n], PrimeQ], {n, 7}]]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 5, 9]];
(Python) print(list(islice(primes_with("259"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [2, 5, 9]) \\ uses function in A385776
CROSSREFS
Supersequence of A020460, A020468.
Sequence in context: A386161 A386154 A386050 * A213996 A057794 A357199
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 13 2025
STATUS
approved