login
A385793
Primes having only {4, 5, 9} as digits.
8
5, 59, 449, 499, 599, 4549, 4999, 5449, 9949, 44449, 44549, 44959, 45599, 45949, 45959, 49459, 49499, 49549, 49559, 49999, 54449, 54499, 54559, 54949, 54959, 55949, 59999, 94559, 94949, 94999, 95549, 95959, 99559, 444449, 445499, 449459, 449549, 449959, 455599
OFFSET
1,1
MATHEMATICA
Flatten[Table[Select[FromDigits /@ Tuples[{4, 5, 9}, n], PrimeQ], {n, 7}]]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [4, 5, 9]];
(Python) print(list(islice(primes_with("459"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [4, 5, 9]) \\ uses function in A385776
CROSSREFS
Supersequence of A020466, A020468.
Sequence in context: A386071 A222585 A386189 * A260630 A386078 A385769
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 13 2025
STATUS
approved