A386186 Primes having only {3, 6, 8, 9} as digits.
3, 83, 89, 383, 389, 683, 839, 863, 883, 983, 3389, 3833, 3863, 3889, 3989, 6389, 6689, 6833, 6863, 6869, 6883, 6899, 6983, 8363, 8369, 8389, 8663, 8669, 8689, 8693, 8699, 8839, 8863, 8893, 8933, 8963, 8969, 8999, 9689, 9833, 9839, 9883, 33863, 33889, 33893, 36383
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 6, 8, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{3, 6, 8, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [3, 6, 8, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("3689"), 41))) # uses function/imports in A385776