Nov-01-2018, 08:28 PM
That code just gives you largest number with at least as many factors as n. And since z goes up to n, it's always going to be n. You want to check against factor_counter(maximum), not factor_counter(n).
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures