in reply to First code - Factors
Whether or not this is a toy program, you should also look at Math::Big::Factors: eg, factors_wheel($no, 1). Here's a hint in using the output of that function: increment hash values for each repeated factor returned, and you'll get a complete list of factors and their multiplicities.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: First code - Factors
by JavaFan (Canon) on Sep 22, 2010 at 11:40 UTC | |
by Anonymous Monk on Sep 22, 2010 at 19:40 UTC |