A386187 Primes having only {3, 7, 8, 9} as digits.
3, 7, 37, 73, 79, 83, 89, 97, 337, 373, 379, 383, 389, 397, 733, 739, 773, 787, 797, 839, 877, 883, 887, 937, 977, 983, 997, 3373, 3389, 3733, 3739, 3779, 3793, 3797, 3833, 3877, 3889, 3989, 7333, 7393, 7789, 7793, 7873, 7877, 7879, 7883, 7933, 7937, 7993, 8377
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 7, 8, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{3, 7, 8, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [3, 7, 8, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("3789"), 41))) # uses function/imports in A385776