Deepak&primes2 ..... i am getting some cases wrong


i am getting tle for 2 cases and wrong ans for another 2 … only 3 passed …

@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.

@aa1 thanks !.. i got all cases correct

@imavneet please mark your doubt as resolved and rate me as well

did it already :grin:

1 Like