I have so far submitted 2 solutions to the judge and both have come back with SIGSEGV. For the PRIME1 problem I assumed that I had made a mistake so I tried the TEST problem, but I still recieved a SIGSEGV. This one made no sense to me. Does anyone else have some insight?
#include <stdio.h>
int main(void)
{
int c;
for (c = 0; scanf("%d", &c) && c != 42; printf("%d", c));
return 0;
}