GMP is a free library for arbitrary precision arithmetic