A386185 Primes having only {3, 6, 7, 9} as digits.
3, 7, 37, 67, 73, 79, 97, 337, 367, 373, 379, 397, 673, 677, 733, 739, 769, 773, 797, 937, 967, 977, 997, 3373, 3637, 3673, 3677, 3697, 3733, 3739, 3767, 3769, 3779, 3793, 3797, 3967, 6337, 6367, 6373, 6379, 6397, 6637, 6673, 6679, 6733, 6737, 6763, 6779, 6793
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 6, 7, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{3, 6, 7, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [3, 6, 7, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("3679"), 41))) # uses function/imports in A385776