Getting Timelimit on both of my testcases


I

Hi,
Somewhere this code is having 2,3 nested loop which will make time complexity very high.
Please read about sieve of eratosthenes method for solving prime number question, that would you

Thanks :slight_smile: