I have understand the problem i have to found out nth prime but since n is very large, i have to take array of very big size which would have nth prime. But how i can define such a large array in c++, my implementation is here. https://pastebin.com/KZrvJRYZ
This program gives me run-time error for testcase 0
Hey @kool.pushan you code is correct and it is passing all the test cases as well, please submit again with c++ as your language.