Problem in Code of Deepak and Primes

In Deepak and Primes question, while submitting the code, I am getting Run Time Error and cann’t figure out why is it so ?
Code Link : https://ide.codingblocks.com/s/422163

Hello @rishabhdevbanshi you dont have to take inpur for test cases remove cin>>t;
and while(t–)
you have to take input for n and then print value corresponding to n.

check this:


this is passing all the test cases.
Happy Learning!!

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.