GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
#!/usr/bin/perl -w12# Some sample GMP module operations34# Copyright 2001, 2004 Free Software Foundation, Inc.5#6# This file is part of the GNU MP Library.7#8# The GNU MP Library is free software; you can redistribute it and/or modify9# it under the terms of the GNU Lesser General Public License as published10# by the Free Software Foundation; either version 2.1 of the License, or (at11# your option) any later version.12#13# The GNU MP Library is distributed in the hope that it will be useful, but14# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY15# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public16# License for more details.17#18# You should have received a copy of the GNU Lesser General Public License19# along with the GNU MP Library; see the file COPYING.LIB. If not, write to20# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,21# MA 02110-1301, USA.2223use strict;242526use GMP;27print "using GMP module $GMP::VERSION and GMP library ",GMP::version(),"\n";282930use GMP::Mpz qw(:all);31print "the 200th fibonacci number is ", fib(200), "\n";32print "next prime after 10**30 is (probably) ", nextprime(mpz(10)**30), "\n";333435use GMP::Mpq qw(:constants);36print "the 7th harmonic number is ", 1+1/2+1/3+1/4+1/5+1/6+1/7, "\n";37use GMP::Mpq qw(:noconstants);383940use GMP::Mpf qw(mpf);41my $f = mpf(1,180);42$f >>= 180;43$f += 1;44print "a sample mpf is $f\n";454647