Project Euler in C