A386167 Primes having only {2, 6, 8, 9} as digits.
2, 29, 89, 229, 269, 829, 929, 2269, 2689, 2699, 2969, 2999, 6229, 6269, 6299, 6689, 6829, 6869, 6899, 8269, 8629, 8669, 8689, 8699, 8929, 8969, 8999, 9629, 9689, 9829, 9929, 22229, 22669, 22699, 26669, 26699, 28229, 28289, 28669, 29269, 29629, 29669, 29989, 62299
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 6, 8, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{2, 6, 8, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [2, 6, 8, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("2689"), 41))) # uses function/imports in A385776