Deepak and Primes


Giving Segmentation fault…!

hello @prashant7122,

ur sieve size is too large. due to some memory constraints we can not declare a very large size array in our program.

so first check value of 5000 000th prime number and then declare ur sieve size just greater than that

1 Like

Still it is not working…!
Can you edit my code then send me…!

check here

1 Like

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.