Euler totient function seive,SIGXFSZ error

The link to my code for question etfs on spoj is TmlrPc - Online C Compiler & Debugging Tool - Ideone.com.

I am getting SIGXFSZ error…Please explain me what it mens and what i can do to correct it.