A385790 Primes having only {2, 8, 9} as digits.
2, 29, 89, 229, 829, 929, 2999, 8929, 8999, 9829, 9929, 22229, 28229, 28289, 29989, 82889, 88289, 89899, 89989, 92899, 98299, 98899, 98929, 98999, 99289, 99829, 99929, 99989, 222289, 228299, 228829, 228929, 228989, 282229, 282299, 282889, 288929, 288989, 289889
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [2, 8, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{2, 8, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [2, 8, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("289"), 41))) # uses function/imports in A385776