spx2 has asked for the wisdom of the Perl Monks concerning the following question:
Is there a module on CPAN for getting fast the prime factors of some number ? I looked at Math::Big::Factors and it's really slow(for 5-digit numbers on a quad-core it's dead slow compared to pari-gp(I know factoring is hard but not this hard...).
I also tried Math::Factor::XS that gets all factors not the prime ones, and this is not what I want. Is there such a module on CPAN that works out the prime factors in at a reasonable speed ?
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CPAN module for prime factors of a number
by BrowserUk (Patriarch) on Dec 18, 2009 at 13:17 UTC | |
by spx2 (Deacon) on Dec 18, 2009 at 13:19 UTC | |
by BrowserUk (Patriarch) on Dec 18, 2009 at 13:38 UTC | |
by marto (Cardinal) on Dec 18, 2009 at 13:43 UTC | |
by syphilis (Archbishop) on Dec 18, 2009 at 13:51 UTC |