A386137 Primes having only {1, 6, 8, 9} as digits.
11, 19, 61, 89, 181, 191, 199, 619, 661, 691, 811, 881, 911, 919, 991, 1181, 1619, 1669, 1699, 1811, 1861, 1889, 1999, 6199, 6619, 6661, 6689, 6691, 6869, 6899, 6911, 6961, 6991, 8111, 8161, 8191, 8669, 8681, 8689, 8699, 8819, 8861, 8969, 8999, 9161, 9181, 9199
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [1, 6, 8, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{1, 6, 8, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [1, 6, 8, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("1689"), 41))) # uses function/imports in A385776