Getting TLE in 1 test case

Deepak and Primes II
in this problem I am getting 1 tle and 6 correct answers. Please help here. Code is below

Hey,
Your code is not optimized at ‘for loop’ on line 51. You should traverse only those elements which are multiples of ‘i’ and not each element between ‘m’ and ‘n’.