Solutions to Project Euler programming problems