OFFSET
1,1
COMMENTS
For k > 1, numbers k such that the digit 4 followed by k - 2 occurrences of the digit 2 followed by the digits 99 is prime (see Example section).
There are no multiples of 3 in the sequence, since (38 * 10^k + 691)/9 is a multiple of 3 if k is.
a(23) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 42w99.
EXAMPLE
4 is in this sequence because (38*10^4 + 691)/9 = 42299 is prime.
Initial terms and associated primes:
a(1) = 2, 499;
a(2) = 4, 42299;
a(3) = 8, 422222299;
a(4) = 10; 42222222299;
a(5) = 14, 422222222222299; etc.
MATHEMATICA
Select[Range[1000], PrimeQ[(38*10^# + 691)/9] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Aug 03 2017
EXTENSIONS
a(21)-a(22) from Robert Price, Oct 31 2018
STATUS
approved