A385792 Primes having only {3, 8, 9} as digits.
3, 83, 89, 383, 389, 839, 883, 983, 3389, 3833, 3889, 3989, 8389, 8839, 8893, 8933, 8999, 9833, 9839, 9883, 33889, 33893, 38333, 38393, 38833, 38839, 38933, 38993, 39383, 39839, 39883, 39983, 39989, 83339, 83383, 83389, 83399, 83833, 83933, 83939, 83983, 88339
Offset: 1
Links
Programs
-
Magma
[p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 8, 9]];
-
Mathematica
Flatten[Table[Select[FromDigits /@ Tuples[{3, 8, 9}, n], PrimeQ], {n, 7}]]
-
PARI
primes_with(, 1, [3, 8, 9]) \\ uses function in A385776
-
Python
print(list(islice(primes_with("389"), 41))) # uses function/imports in A385776