A386184 Primes having only {3, 6, 7, 8} as digits.
3, 7, 37, 67, 73, 83, 337, 367, 373, 383, 673, 677, 683, 733, 773, 787, 863, 877, 883, 887, 3373, 3637, 3673, 3677, 3733, 3767, 3833, 3863, 3877, 6337, 6367, 6373, 6637, 6673, 6733, 6737, 6763, 6833, 6863, 6883, 7333, 7673, 7687, 7867, 7873, 7877, 7883, 8363
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 6, 7, 8]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{3, 6, 7, 8}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [3, 6, 7, 8]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("3678"), 41))) # uses function/imports in A385776