Skip to content

Commit 6a47bfd

Browse files
Fix exit condition after G.E.
1 parent 2b08faa commit 6a47bfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FindAFactor/_find_a_factor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ struct Factorizer {
949949
auto jkit = ikit;
950950
auto jvit = ivit;
951951

952-
for (size_t j = i; j < this->smoothNumberKeys.size(); ++j) {
952+
for (size_t j = i; isIncomplete && (j < this->smoothNumberKeys.size()); ++j) {
953953
if ((*ivit) == (*jvit)) {
954954
// The rows have the same value. Hence, multiplied together,
955955
// they form a perfect square residue we can check for congruence.

0 commit comments

Comments
 (0)