My code is failing to pass test case 5 and 6.
Its working completely fine in online ideone IDE but here its failing 5th and 6th test case. Plz help!
Failed to pass test cases
hello @shankhanilborthakur
ur sieve size is not big enough.
check value of 5000 000 th prime number and declare sieve of size just greater than that.