login
A385792
Primes having only {3, 8, 9} as digits.
8
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,1
MATHEMATICA
Flatten[Table[Select[FromDigits /@ Tuples[{3, 8, 9}, n], PrimeQ], {n, 7}]]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [3, 8, 9]];
(Python) print(list(islice(primes_with("389"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [3, 8, 9]) \\ uses function in A385776
CROSSREFS
Supersequence of A020464, A020472.
Sequence in context: A079652 A386186 A386069 * A139897 A085318 A101717
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 13 2025
STATUS
approved