in reply to Re: Calculate prime factors for a given number in a perl one-liner
in thread Calculate prime factors for a given numer in a perl one-liner
I don't think you should have provided an answer, especially one without an explanation. Remember this is a homework problem. We are supposed to be helping the supplicant to reach a solution by giving hints, and insightful analysis of the problem.
For example kennethk pointed out that that there is no need to store prime factors if they will be printed out.
By giving an answer, you did not help the supplicant, you where just showing off.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: OT: Calculate prime factors for a given numer in a perl one-liner
by ww (Archbishop) on Dec 15, 2010 at 19:49 UTC | |
|
Re^3: Calculate prime factors for a given numer in a perl one-liner
by moritz (Cardinal) on Dec 15, 2010 at 21:13 UTC | |
|
Re^3: Calculate prime factors for a given numer in a perl one-liner
by JavaFan (Canon) on Dec 15, 2010 at 22:53 UTC |