OFFSET
1,2
COMMENTS
For k > 0, numbers k such that the digits 22 followed by k-1 occurrences of the digit 4 followed by 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 224w3.
EXAMPLE
2 is in this sequence because (202*10^2 - 13)/9 = 2243 is prime.
Initial terms and associated primes:
a(1) = 1, 223;
a(2) = 2, 2243;
a(3) = 4, 224443;
a(4) = 20, 2244444444444444444443;
a(5) = 22, 224444444444444444444443; etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[(202*10^# - 13)/9] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Nov 28 2017
EXTENSIONS
a(20)-a(22) from Robert Price, Jan 08 2020
STATUS
approved