could,you check why my code is passing few test cases .
All_testcases_are_notworking
Take the size of your sieve array as 5000000. And compute it before taking any inputs for the test cases.
Please copy paste your code in the IDE. Save it and then send me the link.
Compute the sieve array before taking inputs for any test cases. And you have still not changed the size of your sieve array to 5000000.
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.