A386099 Primes having only {1, 2, 6, 7} as digits.
2, 7, 11, 17, 61, 67, 71, 127, 167, 211, 227, 271, 277, 617, 661, 677, 727, 761, 1117, 1171, 1217, 1277, 1621, 1627, 1667, 1721, 1777, 2111, 2161, 2221, 2267, 2617, 2621, 2671, 2677, 2711, 2767, 2777, 6121, 6211, 6217, 6221, 6271, 6277, 6661, 6761, 7121, 7127
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 2, 6, 7]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{1, 2, 6, 7}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [1, 2, 6, 7]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("1267"), 41))) # uses function/imports in A385776