Solved #25 with gmp