Faling all test case

@anubhavb11 don’t run a for loop for finding qth prime number instead store all prime in a vector while creating sieve then vect[q-1] will be your qth prime number.

but since in sieve we are storing whether it is prime or not at ith location so how can ans is stored at i-1th location even in vaector.
or basically i dont get the idea how to make vector sieve

now when i look at your sieve you have written wrong sieve, first update it and then try submitting it.

thank you now it is giving correct output for all test case but can you please teach me how to make vector seive

@anubhavb11 refer to this code https://ide.codingblocks.com/s/296777

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.