Prime Visits (Time limit Exceeded)

One test case is getting failed, and ti e limit exceeds for one test case. Please tell me what change should I make in my code.
Here is the link to my code-

@LPLC0059 hey keshav try to implement this question with sieve of eratosthenes. there is video in our course content with the same name sieve of eratosthenes.

1 Like