A385794 Primes having only {4, 6, 7} as digits.
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
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [4, 6, 7]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{4, 6, 7}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [4, 6, 7]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("467"), 41))) # uses function/imports in A385776