i am getting tle for 2 cases and wrong ans for another 2 … only 3 passed …
Deepak&primes2 ..... i am getting some cases wrong
@imavneet use long long for the tle
also your code is printing 1 too,
take the case
1
1 100000
it print 1 also which is not a prime.
did it already 
1 Like