PE 13 solved: found the first ten digits of a large sum - in Ruby