Code to generate Project Euler solutions