A386150 Primes having only {2, 3, 7, 8} as digits.
2, 3, 7, 23, 37, 73, 83, 223, 227, 233, 277, 283, 337, 373, 383, 727, 733, 773, 787, 823, 827, 877, 883, 887, 2237, 2273, 2287, 2333, 2377, 2383, 2777, 2833, 2837, 2887, 3323, 3373, 3727, 3733, 3823, 3833, 3877, 7237, 7283, 7333, 7723, 7727, 7823, 7873, 7877
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 3, 7, 8]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{2, 3, 7, 8}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [2, 3, 7, 8]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("2378"), 41))) # uses function/imports in A385776