Skip to content

Commit 82eb47c

Browse files
Minor refactor on sievePolynomials()
1 parent 7bfc04a commit 82eb47c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

FindAFactor/_find_a_factor.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ struct Factorizer {
776776
// This actually just goes ahead and FORCES
777777
// the number into a "close-by" smooth perfect square.
778778
const BigInteger candidate = makeSmooth(z * z);
779-
// We want two numbers multiplied together to be larger than toFactor.
779+
// We want each number to be larger than toFactor.
780780
if (candidate < toFactor) {
781781
continue;
782782
}
@@ -813,8 +813,6 @@ struct Factorizer {
813813
if (smoothNumberKeys.size() > rowLimit) {
814814
isIncomplete = false;
815815
smoothNumberSet.clear();
816-
817-
return 1U;
818816
}
819817
}
820818
}

0 commit comments

Comments
 (0)