Https://ide.codingblocks.com/#/s/14341


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://hack.codingblocks.com/contests/c/457/95

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