login
A365596
Near-repdigit primes with at least two 3's as the repeated digit.
9
331, 337, 3331, 33331, 333331, 333337, 3333331, 33333331, 333333333333333331, 3333333333333333333333333333333333333331, 3333333333333333333333333333333333333333333337, 33333333333333333333333333333333333333333333333331
OFFSET
1,1
COMMENTS
The final digit must be 1 or 7. - Harvey P. Dale, May 28 2026
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..21 (first 19 terms from Robert Price)
EXAMPLE
3331 is a term because all digits are equal to 3 except the last one.
MATHEMATICA
Select[FromDigits/@Flatten[Table[{PadLeft[{1}, n, 3], PadLeft[{7}, n, 3]}, {n, 3, 50}], 1], PrimeQ] (* Harvey P. Dale, May 28 2026 *)
KEYWORD
base,nonn
AUTHOR
Robert Price, Sep 10 2023
STATUS
approved