A386147 Primes having only {2, 3, 6, 7} as digits.
2, 3, 7, 23, 37, 67, 73, 223, 227, 233, 263, 277, 337, 367, 373, 673, 677, 727, 733, 773, 2237, 2267, 2273, 2333, 2377, 2633, 2663, 2677, 2767, 2777, 3323, 3373, 3623, 3637, 3673, 3677, 3727, 3733, 3767, 6263, 6277, 6323, 6337, 6367, 6373, 6637, 6673, 6733, 6737
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 3, 6, 7]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{2, 3, 6, 7}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [2, 3, 6, 7]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("2367"), 41))) # uses function/imports in A385776