How it is possible to find out such a big prime number??
Doubt in This Question
Hey Saksham, can you please mention the problem’s name of which you are talking about.
Deepak and Primes in Number Theory Sectoin
Hey Saksham, you can solve it by creating sieve of eratosthenes for numbers till 100000005, and then printing Nth prime number using the sieve.
It is mentioned in the question to print nth prime number and n can go upto 5*(10^6) which can not be computed, can you please clarify a bit? I am getting runtime error on last two test cases please help…
Hi Saksham, this problem can be solved using the sieve of eratosthenes. If you’re getting stuck, copy your code on ide.codingblocks.com, save it and share the link here. We’ll help you resolve your query.
HI Saksham, pls check the code now.
Give an emphasis on the conditions and operations used in for loop.
Hi Saksham, since you have not been responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.