Solutions to problems in Project Euler website using C