I have create a sieve and tried to store the prime numbers in an array. Now, I am getting wrong answer in the second last test case. Can someone help me with deciding the correct value of Msize so that I don’t get segmentation error? Because the value mentioned in editorial i.e 1000005 is giving me segmentation fault.
^^^^^^^^^^^^^^ MY CODE ^^^^^^^^^^^^^