-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* golf * fix * [auto-verifier] verify commit ba62ec7 --------- Co-authored-by: GitHub <[email protected]>
- Loading branch information
1 parent
25c67e7
commit 2f70d97
Showing
3 changed files
with
5 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#pragma once | ||
#include "calc_sieve.hpp" | ||
//! `fac` will equal all prime factors of num, increasing | ||
//! `p` will be all prime factors of num, increasing | ||
//! @time O(log(num)) | ||
//! @space O(1) | ||
for (int left = num, fac = sieve[left]; left > 1; | ||
fac = sieve[left /= fac]) | ||
for (int cpy = num, p; (p = sieve[cpy]) > 1; cpy /= p) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters