Deepak loves prime problem

code is running successfully in local compiler but only one test case is showing wrong answer not able to find any mistake link to the code

@soorya19k
in this problem constraints are upto 5000000 and 5000000th prime number lies around 10^8 so check for prime upto10^8, you are checking upto 5*10^6 only.

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.