please see this is the code for segmented sieve kindly check i am getting segmentation fault while submitting it on spoj
and im getting tle on hackerblocks
Https://ide.codingblocks.com/#/s/14341
Hello Keshav ! actually you have initialised res with 1, which is wrong , it should be initialised with the value 0 , see this code https://ide.codingblocks.com/#/s/14354