Prime visits bwtween two nos

2 test cases are passed and in one showing tle.
https://ide.codingblocks.com/s/50997

Hi Aastha, one test case is showing TLE because of the two nested loops. You can increase the efficiency of your code by using the sieve of eratosthenes. The sieve of Eratosthenes is one of the most efficient ways to find all primes less than a given number.