Re: Determining highest common factor using Perl

2002-09-26 Thread Paul Johnson
On Thu, Sep 26, 2002 at 10:32:25AM +0200, Janek Schleicher wrote: > Jeff Aa wrote at Thu, 26 Sep 2002 10:52:46 +0200: > > > I need to determine the highest common factor for a series of integers. > > I have scribed an initial stab included below - does anyone have a > > better HCF implementation,

Re: Determining highest common factor using Perl

2002-09-26 Thread Janek Schleicher
Jeff Aa wrote at Thu, 26 Sep 2002 10:52:46 +0200: > I need to determine the highest common factor for a series of integers. > I have scribed an initial stab included below - does anyone have a > better HCF implementation, or any improvements to suggest? Well, here's a funny way: use Quantum::Su

Determining highest common factor using Perl

2002-09-26 Thread Jeff AA
I need to determine the highest common factor for a series of integers. I have scribed an initial stab included below - does anyone have a better HCF implementation, or any improvements to suggest? TIA Jeff #!/usr/local/bin/perl -w use strict; my ( $one, $two ) = @ARGV; $one = 37894060279 unle