code for Project Euler problems