A386087 Primes having only {1, 2, 3, 6} as digits.
2, 3, 11, 13, 23, 31, 61, 113, 131, 163, 211, 223, 233, 263, 311, 313, 331, 613, 631, 661, 1123, 1163, 1213, 1223, 1231, 1321, 1361, 1613, 1621, 1663, 2111, 2113, 2131, 2161, 2213, 2221, 2311, 2333, 2621, 2633, 2663, 3121, 3163, 3221, 3313, 3323, 3331, 3361, 3613
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 2, 3, 6]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{1, 2, 3, 6}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [1, 2, 3, 6]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("1236"), 41))) # uses function/imports in A385776