I’ve wrriten this code but it shows one test case is failing and gives TLE.
Test case failing
@payal_05 running the for loop to reach nth prime number for every test will give you TLE for sure.
store all your prime numbers in a vector then for every n vec[n-1] will be nth prime number.