TLE error in one test case. PLease tell me why?
Prime visits problem TLE
Instead of checking everytime whether a no. is prime or not you can take an array an initially store all prime nos. till 1000000 and then call the array and count the prime nos. btw that range