login
A385795
Primes having only {4, 7, 8} as digits.
8
7, 47, 487, 787, 877, 887, 4447, 4787, 4877, 7477, 7487, 7877, 8447, 8747, 8887, 44777, 44887, 47777, 48487, 48787, 48847, 74747, 74887, 77447, 77477, 77747, 78487, 78787, 78877, 78887, 84787, 87877, 87887, 88747, 444487, 444877, 444887, 447877, 474787, 474847
OFFSET
1,1
MATHEMATICA
Flatten[Table[Select[FromDigits /@ Tuples[{4, 7, 8}, n], PrimeQ], {n, 7}]]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [4, 7, 8]];
(Python) print(list(islice(primes_with("478"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [4, 7, 8]) \\ uses function in A385776
CROSSREFS
Subsequence of A030432.
Supersequence of A020465, A020470.
Sequence in context: A173772 A178002 A386074 * A288722 A006873 A228695
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 13 2025
STATUS
approved