OFFSET
1,2
COMMENTS
For k > 1, numbers k such that the digit 8 followed by k-2 occurrences of the digit 9 followed by the digits 77 is prime (see Example section).
a(24) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 89w77.
EXAMPLE
4 is in this sequence because 9*10^4 - 23 = 89977 is prime.
Initial terms and associated primes:
a(1) = 1, 67;
a(2) = 2, 877;
a(3) = 4, 89977;
a(4) = 13, 89999999999977;
a(5) = 16, 89999999999999977; etc.
MATHEMATICA
Select[Range[1, 100000], PrimeQ[9*10^# - 23] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, May 29 2017
STATUS
approved