Sir I tried my best to solve the question but its only passing 3 out of the 7 test cases. Please rectify where am I doing wrong.
The link for the code is :-
"Deepak and Primes II" problem
use segmented seive …
Sir, I have already used segmented sieve in the code.
actually your code is printing 1 too,
take the case
1
1 100000
it print 1 also which is no a prime.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.