OFFSET
1,3
COMMENTS
For k > 1, numbers k such that the digit 1 followed by k-2 occurrences of the digit 3 followed by the digits 99 is prime (see Example section).
a(26) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 13w99.
EXAMPLE
3 is in this sequence because (4*10^3 + 197)/3 = 1399 is prime.
Initial terms and associated primes:
a(1) = 0, 67;
a(2) = 1, 79;
a(3) = 2, 199;
a(4) = 3, 1399;
a(5) = 4, 13399; etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[(4*10^# + 197)/3] &]
PROG
(PARI) isok(n) = isprime((4*10^n + 197)/3); \\ Indranil Ghosh, Mar 09 2017
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Mar 07 2017
STATUS
approved