summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rw-r--r--math/rho.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/math/rho.cpp b/math/rho.cpp
index df70251..635c630 100644
--- a/math/rho.cpp
+++ b/math/rho.cpp
@@ -13,7 +13,7 @@ ll rho(ll n) { // Findet Faktor < n, nicht unbedingt prim.
void factor(ll n, map<ll, int>& facts) {
if (n == 1) return;
- if (isPrime(n)) {facts[n]++, return;}
+ if (isPrime(n)) {facts[n]++; return;}
ll f = rho(n);
factor(n / f, facts); factor(f, facts);
}