login
A386049
Primes having only {0, 2, 5, 7} as digits.
1
2, 5, 7, 227, 257, 277, 557, 577, 727, 757, 2027, 2207, 2557, 2707, 2777, 5077, 5227, 5507, 5527, 5557, 7027, 7057, 7207, 7507, 7577, 7727, 7757, 20507, 20707, 22027, 22277, 22727, 22777, 25057, 25577, 27077, 27277, 27527, 50077, 50207, 50227, 50527, 50707, 50777
OFFSET
1,1
COMMENTS
Primes with decimal digits only in the set {0,2} mod 5.
MATHEMATICA
Select[FromDigits /@ Tuples[{0, 2, 5, 7}, n], PrimeQ]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 2, 5, 7]];
(Python) print(list(islice(primes_with("0257"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [0, 2, 5, 7]) \\ uses function in A385776
CROSSREFS
Supersequence of A214705, A260827, A261267.
Sequence in context: A006275 A042673 A386162 * A214705 A252283 A007571
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 15 2025
STATUS
approved