OFFSET
1,2
COMMENTS
For k > 1, numbers k such that the digit 2 followed by k-2 occurrences of the digit 9 followed by the digits 77 is prime (see Example section).
a(21) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 29w77.
EXAMPLE
2 is in this sequence because 3*10^2 - 23 = 277 is prime.
Initial terms and associated primes:
a(1) = 1, 7;
a(2) = 2, 277;
a(3) = 5, 299977;
a(4) = 8, 299999977;
a(5) = 14, 299999999999977; etc.
MATHEMATICA
Select[Range[1, 100000], PrimeQ[3*10^# - 23] &]
PROG
(PARI) isok(k) = isprime(3*10^k - 23); \\ Michel Marcus, Nov 22 2017
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Nov 21 2017
STATUS
approved