A385800 Primes having only {6, 8, 9} as digits.
89, 6689, 6869, 6899, 8669, 8689, 8699, 8969, 8999, 9689, 66889, 68669, 68699, 68899, 69899, 86689, 86869, 86969, 88969, 89669, 89689, 89899, 89989, 96989, 98669, 98689, 98869, 98899, 98999, 99689, 99989, 666889, 666989, 668699, 668869, 668989, 668999, 669689, 669869
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [6, 8, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{6, 8, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [6, 8, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("689"), 41))) # uses function/imports in A385776