Project Euler problems in Python 3.3