Project Euler solutions (Python)