Can you tell me where i went wrong

there are 6 test in which 5 cases are corrent and test case 0 is wrong. please tell me the error in my code
My code link is :- https://ide.codingblocks.com/s/212167

please kindly resolve this problem as soon as possible

@Kapil1704 the 5000000th prime number is 7,368,787 so your sieve should be big enough to hold that number.

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.