Prateek loves candy


it shows tle
and if i am using int instead of long long it shows segmentation fault


see this, store the primes into an array so that for every test case you can directly print th nth prime number!

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.