Working through the Euler problem set in Python 2.7 (https://projecteuler.net/problems)