Deepak and Primes II

what is wrong in my code please tell me?

@Viru31 Take input case:
1
1 100000

Your code will also print 1 and 2 which are not prime ,try to solve this error case.
Feel free to ask any doubt.

yes got it thank you @rishabhmahajan546 bhaiyya

@Viru31 anytime bro,please close the doubt and give rating .Happy coding :slight_smile: