Problem 20 python

The "hard way" without relying on arbitrary precision integers