Euler 24 in Python.