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 87 is prime (see Example section).
a(24) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 29w87.
EXAMPLE
1 is in this sequence because 3*10^1 - 13 = 17 is prime.
Initial terms and associated primes:
a(1) = 1, 17;
a(2) = 13, 29999999999987;
a(3) = 16, 29999999999999987;
a(4) = 19, 29999999999999999987;
a(5) = 23, 299999999999999999999987; etc.
MATHEMATICA
Select[Range[1, 100000], PrimeQ[3*10^# - 13] &]
PROG
(PARI) isok(k) = isprime(3*10^k - 13); \\ Michel Marcus, Nov 20 2017
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Nov 19 2017
STATUS
approved