Still stuck in this code
It is getting partial submit
hi @pks101295
The 5,000,000th prime is 86,028,121.
so atleast this much space you require
as size of array is long and you need to save only 1 or 0
so rather than int use bool arr[100000001]={};
this size array is very large so you have to
do some more optimzations like
assume 0 as prime and 1 as not prime
and other which i have commented in modified code below

i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course