OFFSET
1,1
COMMENTS
Numbers k such that the digits 20 followed by k occurrences of the digit 3 is prime (see Example section).
a(23) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 203w.
EXAMPLE
3 is in this sequence because (61*10^3 - 1)/3 = 20333 is prime.
Initial terms and associated primes:
a(1) = 3, 20333;
a(2) = 17, 2033333333333333333;
a(3) = 18, 20333333333333333333;
a(4) = 30, 20333333333333333333333333333333; etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[(61*10^# - 1)/3] &]
PROG
(PARI) isok(k) = isprime((61*10^k - 1)/3); \\ Michel Marcus, Nov 22 2017
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Nov 21 2017
EXTENSIONS
a(21)-a(22) from Robert Price, Jan 05 2020
STATUS
approved