Deepak and Primes Optimisation problem

Can you please tell me what more optimisation i can make in my code as it is not passing test case 0 and test case 1

@rahul.aggarwal000005
Push all primes in a vector
Then when you get a query for nth prime print nth value in vector
Kindly close this doubt

still getting the same problem