summaryrefslogtreecommitdiff
path: root/content/math/divisors.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'content/math/divisors.cpp')
-rw-r--r--content/math/divisors.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/math/divisors.cpp b/content/math/divisors.cpp
index 5afd4fb..2a17f54 100644
--- a/content/math/divisors.cpp
+++ b/content/math/divisors.cpp
@@ -2,7 +2,7 @@ ll countDivisors(ll n) {
ll res = 1;
for (ll i = 2; i * i * i <= n; i++) {
ll c = 0;
- while (n % i == 0) {n /= i; c++;}
+ while (n % i == 0) { n /= i; c++; }
res *= c + 1;
}
if (isPrime(n)) res *= 2;