Prateek loves Candy, Last TC shows TLE

TLE in Last Case, I had created sieve but still TLE in Last case

hello @naivecoder010
store all prime numbers upto 10^6 in some array and then to print nth prime number, print value at index n-1 of that array.

Hello, I did same, Sorry forgot to add code, Please look it,

see store prime numbers before running ur while loop.

Okay, got it thanks.:slight_smile:

check this code -> https://ide.codingblocks.com/s/232145