prime1 runtime error

http://www.codechef.com/viewsolution/6016055
this is the link of my submission

Please refer these threads:

These have all that you want to know!!

Put your code in proper blocks please!!!