login
A385787
Primes having only {2, 6, 7} as digits.
8
2, 7, 67, 227, 277, 677, 727, 2267, 2677, 2767, 2777, 6277, 7727, 22277, 22727, 22777, 26227, 26267, 26627, 26777, 27277, 27767, 62627, 67777, 72227, 72277, 72727, 72767, 76667, 76777, 77267, 226267, 226777, 227267, 227627, 262627, 266677, 266767, 267227
OFFSET
1,1
MATHEMATICA
Flatten[Table[Select[FromDigits /@ Tuples[{2, 6, 7}, n], PrimeQ], {n, 7}]]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 6, 7]];
(Python) print(list(islice(primes_with("267"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [2, 6, 7]) \\ uses function in A385776
CROSSREFS
Supersequence of A020459, A020469.
Sequence in context: A246865 A386051 A386165 * A133237 A099660 A341088
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 13 2025
STATUS
approved