Deepak and Primes in number theory

https://ide.codingblocks.com/s/63905
question is to find prime number correspond to the index
in test case 3 test case passed but 2 test case showing wrong answer

HI Anshumanchaursiya, it is given in constraints that n can be anything from 1 to 5000000.
But for n = 5000000, your code gives 0 as the output.
Please correct your code accordingly :slight_smile:

Hey Anshuman, as you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.