
TLE in first test case.

TLE in first test case.
see the constraint on number of test cases, It’s quite large because for every test case you are going to find the prime numbers upto that number and at last return the last prime number found, this will cause the TLE for big test cases.
That’s how we need not to find the prime number for every test case