Code from problems on Project Euler