in reply to Perl script performance help
I have a single observation for you: 34 * xxx can never produce xxx43.
Because 4 * any digit will never produce a 3 as the last digit of the result.
That single observation will allow you to cut your runtime by (several) orders of magnitude.
|
|---|