only two test cases are passing,not getting what am i missing?
i have also rectify corner case like when m = 1
Deepak and prime 2
hello @mohitbiddu1
you can run the highlighted loop only when i is prime.
read about segemented sieve once.
it doesn’t matter sir i am not getting tle.I am getting wa.
Even if i make change what you are suggesting then it will give wa in my code.just check it once.
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.