Ugly solution for problem 004 in Python.
Problem 6