Programming solutions to problems 1-50 on Project Euler