Solve Problem13.

I suppose this would have been much harder/
more interesting were not BigInteger available to me.