Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: greatest common factor

by zeno (Friar)
on Feb 07, 2001 at 16:16 UTC ( #56937=note: print w/replies, xml ) Need Help??

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://56937]
[Discipulus]: Ah! is i'll have some fre4e time i'll try try::tiny

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2017-07-24 09:29 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (349 votes). Check out past polls.