Project Euler cleanup