Problem 21 (python)

This code is very inefficient, it took around 2 minutes on pypy. I'm
sure it can be optimised, i will do so later.