Skip to content

Commit 94fa2af

Browse files
Helpful error message
1 parent b218609 commit 94fa2af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FindAFactor/_find_a_factor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ struct Factorizer {
829829
// Get the first free row from Gaussian elimination results
830830
const boost::dynamic_bitset<size_t>& freeRow = ger.solutionColumns[solutionColumnId].first;
831831

832-
// Find the indices where free_row has true values.
832+
// Find the indices where the free row has true values.
833833
for (size_t i = 0; i < freeRow.size(); i++) {
834834
if (freeRow[i]) {
835835
indices.push_back(i);
@@ -1188,7 +1188,7 @@ std::string find_a_factor(std::string toFactorStr, size_t method, size_t nodeCou
11881188
}
11891189
}
11901190
if (smoothPrimes.empty()) {
1191-
throw std::runtime_error("No smooth primes found under bound. (Increase the smoothness bound multiplier.)");
1191+
throw std::runtime_error("No smooth primes found under bound. (Increase the smoothness bound multiplier, unless this is not in range of check_small_factors=True.)");
11921192
}
11931193
// From 1, this is a period for wheel factorization
11941194
size_t biggestWheel = 1ULL;

0 commit comments

Comments
 (0)