3rd test case fail

3rd test case fail3rd test case fail3rd test case fail3rd test case fail3rd test case fail3rd test case fail3rd test case fail3rd test case fail3rd test case fail3rd test case fail

long long int p[1000000]
this is not correct
The 500,000th prime is 7,368,787.
so size of p should be 7400000
also type of p array should be bool not long long int
because you are storing only 0 and 1 in it

Reference Code

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.