OFFSET
1,2
COMMENTS
For k > 0, numbers k such that the digits 33 followed by k-1 occurrences of the digit 5 followed by the digit 7 is prime (see Example section).
a(26) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 335w7.
EXAMPLE
4 is in this sequence because (302*10^4 + 13)/9 = 335557 is prime.
Initial terms and associated primes:
a(1) = 1, 337;
a(2) = 4, 335557;
a(3) = 7, 335555557;
a(4) = 9, 33555555557;
a(5) = 16, 335555555555555557; etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[(302*10^# + 13)/9] &]
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Jan 15 2017
EXTENSIONS
a(25) from Robert Price, Feb 08 2020
STATUS
approved