I am getting a TLE error. I am following the tutorial for it. I think my number of factors generation is slow. Is there any other problem? What is the most optimized method for generating the number of factors?
p.s. sqrt(n) approach gives TLE (as mentioned in editorial too)