Math::GMP is a perl interface to the high-speed arbitrary size integer math library libgmp (GNU MP lib).