diff options
author | Ta180m | 2020-05-21 18:10:07 -0500 |
---|---|---|
committer | Ta180m | 2020-05-21 18:10:07 -0500 |
commit | dee7c358bd54119ca9e1d5ff711ced80bfe07ad7 (patch) | |
tree | 493add92e839c00fb31cfef883793f91386514c7 /Math | |
parent | 7d90c62718119dab5002856179c20a45014b30ba (diff) |
Update primes.cpp
Diffstat (limited to 'Math')
-rw-r--r-- | Math/primes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Math/primes.cpp b/Math/primes.cpp index e3ba48d..882cae9 100644 --- a/Math/primes.cpp +++ b/Math/primes.cpp @@ -24,8 +24,8 @@ vector<ii> factorize(ll N) { if (N % pf == 0) { factors.emplace_back(pf, 0); while (N % pf == 0) { N /= pf; ++factors.back().s; } - pf = pr[++idx]; - } + } + pf = pr[++idx]; } if (N != 1) factors.emplace_back(N, 1); return factors; |