Code for Project Euler