Working through Project Euler problems