Project Euler problems solved in Python 3