close
login
A385800
Primes having only {6, 8, 9} as digits.
11
89, 6689, 6869, 6899, 8669, 8689, 8699, 8969, 8999, 9689, 66889, 68669, 68699, 68899, 69899, 86689, 86869, 86969, 88969, 89669, 89689, 89899, 89989, 96989, 98669, 98689, 98869, 98899, 98999, 99689, 99989, 666889, 666989, 668699, 668869, 668989, 668999, 669689, 669869
OFFSET
1,1
MATHEMATICA
Flatten[Table[Select[FromDigits /@ Tuples[{6, 8, 9}, n], PrimeQ], {n, 7}]]
PROG
(Magma) [p: p in PrimesUpTo(10^6) | Set(Intseq(p)) subset [6, 8, 9]];
(Python) print(list(islice(primes_with("689"), 41))) # uses function/imports in A385776
(PARI) primes_with(, 1, [6, 8, 9]) \\ uses function in A385776
CROSSREFS
Subsequence of A030431, A106111.
Supersequence of A020472.
Sequence in context: A342049 A264323 A100419 * A328355 A264135 A264020
KEYWORD
nonn,base,easy
AUTHOR
Jason Bard, Jul 14 2025
STATUS
approved