Please check my code
call sieve just oncee
added comments
int will work no need of ll
mam,code still giving a segmentation fault.

code updated for the prvious link itself
call sieve just oncee
added comments
int will work no need of ll
mam,code still giving a segmentation fault.

code updated for the prvious link itself