working fine in test case 2 and test case 3 but in test case1 it’s showing the time limit exceeding
i 've saved the code on the coding blockjs ide
Time limit exceeding
@pranav_sharma The constraints are large so try this problem using the optimized Sieve Of Eratosthenes which is taught in the number theory section of the course.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.