close
login
A386032
Primes having only {0, 1, 5, 7} as digits.
1
5, 7, 11, 17, 71, 101, 107, 151, 157, 557, 571, 577, 701, 751, 757, 1051, 1117, 1151, 1171, 1511, 1571, 1777, 5011, 5051, 5077, 5101, 5107, 5171, 5501, 5507, 5557, 5701, 5711, 5717, 7001, 7057, 7151, 7177, 7507, 7517, 7577, 7717, 7757, 10007, 10111, 10151, 10177
OFFSET
1,1
MATHEMATICA
Select[FromDigits /@ Tuples[{0, 1, 5, 7}, n], PrimeQ]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [0, 1, 5, 7]];
(Python) print(list(islice(primes_with("0157"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [0, 1, 5, 7]) \\ uses function in A385776
CROSSREFS
Supersequence of A199325, A199327, A260828.
Sequence in context: A027755 A386129 A380984 * A386132 A260828 A394631
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 14 2025
STATUS
approved