Project Euler problems implemented in C