michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: =head1 NAME michael@0: michael@0: gcd - compute greatest common divisor of two integers michael@0: michael@0: =head1 SYNOPSIS michael@0: michael@0: gcd michael@0: michael@0: =head1 DESCRIPTION michael@0: michael@0: The B program computes the greatest common divisor of two michael@0: arbitrary-precision integers I and I. The result is written in michael@0: standard decimal notation to the standard output. michael@0: michael@0: If I is zero, B will print an error message and exit. michael@0: michael@0: =head1 SEE ALSO michael@0: michael@0: invmod(1), isprime(1), lap(1) michael@0: michael@0: =head1 AUTHOR michael@0: michael@0: Michael J. Fromberger michael@0: Thayer School of Engineering, Hanover, New Hampshire, USA