in reply to greatest common factor

Very elegantly done. BTW, there's a typo in the sub multigcf: gcd should be gcf! Otherwise, a very nice offering.

sub multigcf { my $x = shift; $x = gcd($x, shift) while @_; #should be gcf! return $x; }

Replies are listed 'Best First'.
Re^2: greatest common factor
by Anonymous Monk on Mar 17, 2017 at 06:23 UTC
    its greatest common divisor , hence gcd