Pls tell the mistake
Prateek loves candy
@G_rahil
why are you calling prime_sieve() function for each testcase? Itβs doing the same job again and again. just move line 26 and 27 outside for loop so that prime_sieve() call only once
@G_rahil
you have not delete those two statement inside loop. Also store all prime numbers in some vector and simply print prime_number[n-1] for each testcase. I have modified your code plz check