MY TWO TESTCASES ARE NOT PASSING CAN I KNOW THE REASON WITH PROOF.?
Here is my code link: https://ide.codingblocks.com/s/187686
MY TWO TESTCASES ARE NOT PASSING CAN I KNOW THE REASON WITH PROOF.?
Here is my code link: https://ide.codingblocks.com/s/187686
Your testcases are failing because the size of your primes array is not sufficient. You need 5000000th prime number , so max number that you have to consider definitely has to be greater than 5000000
I have tested by taking number of primes greater than 5000000 but it is still failing those two testcase.
Can you share what are you trying to say?
Can you please tell me the limit that you used? I am saying that the upper bound you considered for 5000000th is incorrect.
@navin_japes Please check this implementation https://ide.codingblocks.com/s/187698
Here https://ide.codingblocks.com/s/187701 I modified your code.
Sure bro . I will mark it in a while
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.
No problem I got it I have rated the explanation too.