Code for the Project Euler challenges