diff --git a/math/number-of-divisors.cpp b/math/number-of-divisors.cpp index fd2d40707..1b87b3e5b 100644 --- a/math/number-of-divisors.cpp +++ b/math/number-of-divisors.cpp @@ -12,7 +12,7 @@ * * Example:- N=36 * 36 = (3^2 * 2^2) - * numbe-of-divisors(36) = (2+1) * (2+1) = 9. + * number-of-divisors(36) = (2+1) * (2+1) = 9. * list of divisors of 36 = 1, 2, 3, 4, 6, 9, 12, 18, 36. **/ @@ -30,10 +30,10 @@ int number_of_divisors(int n) { } int divisors_count = 1; // If n is prime at that time vector prime_exponent_count will remain empty. - for (int i=0; i