getting wrong answers
Prateek loves candy
@Rakshitgarg99 you are using nested loops here which will give you TLE,what you can do is store all the prime numbers in a vector then prime[n-1] will be your answer for every test case.
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.