A386101 Primes having only {1, 2, 6, 9} as digits.
2, 11, 19, 29, 61, 191, 199, 211, 229, 269, 619, 661, 691, 911, 919, 929, 991, 1129, 1229, 1291, 1619, 1621, 1669, 1699, 1999, 2111, 2129, 2161, 2221, 2269, 2621, 2699, 2969, 2999, 6121, 6199, 6211, 6221, 6229, 6269, 6299, 6619, 6661, 6691, 6911, 6961, 6991, 9161
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 2, 6, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{1, 2, 6, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [1, 2, 6, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("1269"), 41))) # uses function/imports in A385776