OFFSET
1,2
COMMENTS
For k > 1, numbers k such that the digit 2 followed by k-2 occurrences of the digit 1 followed by the digits 69 is prime (see Example section).
a(21) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 21w69.
EXAMPLE
2 is in this sequence because (19*10^2 + 521)/9 = 269 is prime.
Initial terms and associated primes:
a(1) = 1, 79;
a(2) = 2, 269;
a(3) = 4, 21169;
a(4) = 7, 21111169;
a(5) = 34, 21111111111111111111111111111111169; etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[(19*10^# + 521)/9] &]
PROG
(PARI) isok(k) = isprime((19*10^k + 521)/9); \\ Michel Marcus, Nov 15 2017
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Nov 15 2017
EXTENSIONS
a(20) from Robert Price, May 29 2018
STATUS
approved