login
A385794
Primes having only {4, 6, 7} as digits.
8
7, 47, 67, 467, 647, 677, 4447, 7477, 44647, 44777, 46447, 46477, 46747, 47777, 64667, 64747, 66467, 67447, 67477, 67777, 74747, 76667, 76777, 77447, 77477, 77647, 77747, 444677, 444767, 446447, 446477, 446647, 446767, 447467, 447677, 464447, 464467, 464647, 464747
OFFSET
1,1
MATHEMATICA
Flatten[Table[Select[FromDigits /@ Tuples[{4, 6, 7}, n], PrimeQ], {n, 7}]]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [4, 6, 7]];
(Python) print(list(islice(primes_with("467"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [4, 6, 7]) \\ uses function in A385776
CROSSREFS
Subsequence of A030432.
Supersequence of A020465, A020469.
Sequence in context: A141882 A386193 A386072 * A240569 A386195 A386075
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 13 2025
STATUS
approved