Python solution to euler 3 - and a pretty good one at that