VOOZH about

URL: https://oeis.org/A386079

⇱ A386079 - OEIS


login
A386079
Primes having only {0, 5, 7, 8} as digits.
1
5, 7, 557, 577, 587, 757, 787, 857, 877, 887, 5077, 5087, 5507, 5557, 5807, 5857, 7057, 7507, 7577, 7757, 7877, 8087, 8707, 8807, 8887, 50077, 50087, 50587, 50707, 50777, 50857, 55057, 55787, 55807, 57077, 57557, 57587, 57787, 58057, 58757, 58787, 70507, 70877
OFFSET
1,1
MATHEMATICA
Select[FromDigits /@ Tuples[{0, 5, 7, 8}, n], PrimeQ]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 5, 7, 8]];
(Python) print(list(islice(primes_with("0578"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [0, 5, 7, 8]) \\ uses function in A385776
CROSSREFS
Supersequence of A260827, A260830, A385771.
Sequence in context: A176960 A114368 A388657 * A260830 A260827 A020467
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 16 2025
STATUS
approved