Project Euler problems 1-6