OFFSET
1,2
COMMENTS
For k > 1, numbers k such that the digit 8 followed by k-2 occurrences of the digit 5 followed by the digits 23 is prime (see Example section).
a(26) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 85w23.
EXAMPLE
4 is in this sequence because (77*10^4 - 293)/9 = 85523 is prime.
Initial terms and associated primes:
a(1) = 1, 53;
a(2) = 2, 823;
a(3) = 4, 85523;
a(4) = 7, 85555523;
a(5) = 10, 85555555523; etc.
MATHEMATICA
Select[Range[1, 100000], PrimeQ[(77*10^# - 293)/9] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Jun 09 2017
EXTENSIONS
a(24)-a(25) from Robert Price, Sep 16 2019
STATUS
approved