+ 8
Hello. This is Challenge: Which integer has the largest number of divisors? But i get wrong result. Why?
5 Antworten
+ 10
@Podretyz Because you're missing one variable to store the *current* maximum number of factors.
You're comparing the count of factors with the maximum number which are 2 different things.
+ 8
You're welcome and hope you enjoy the challenge! 😉
+ 6
my result: 120 has count of 16 divisors.
But thruth result: 7560 has count of 64 divisors.
+ 6
Thanks you, Zephyr Koo :)
+ 4
Tell me the number for which you are getting wrong.