Project Euler solutions in Python 3