code: https://ide.codingblocks.com/s/116406
Getting no output in two test cases. What is the error?
Deepak and primes-doubt
@dvitiarora
As the problem says , you are required to print nth prime number where n can be as large as 50000. 50000th prime number is a little over 86 million while you are only computing primes till 50000. Increase your sieve array size to 87 million to be safe to that it covers all cases.