Project euler solutions in C