problem 25

maybe trivial because of bignum? not sure.