Can you check my code it is not giving a correct output
Hi! Your implementation looks a bit messed up. Please refer to this code for sieve.
it only printing 3 check your code
Check the input format and analyze the code. Don’t jump on the output straight away. You first have to input the number of test cases and then n. It is the code displaying the 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.