Skip to content

Commit 5a391e3

Browse files
Better error message
1 parent cac9e12 commit 5a391e3

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
@@ -1002,7 +1002,7 @@ struct Factorizer {
10021002
BigInteger solveForFactor() {
10031003
// Gaussian elimination is used to create a perfect square of the residues.
10041004
if (smoothNumberKeys.empty()) {
1005-
throw std::runtime_error("No smooth numbers found. Sieve more. (The sieving bound multiplier is equivalent to that many times the square root of the number to factor, for calculated numerical range above an offset of the square root of the number to factor.)");
1005+
throw std::runtime_error("No smooth numbers found. Sieve more or increase smoothness bound to reduce selectiveness. (The sieving bound multiplier is equivalent to that many times the square root of the number to factor, for calculated numerical range above an offset of the square root of the number to factor.)");
10061006
}
10071007

10081008
GaussianEliminationResult result = gaussianElimination();

0 commit comments

Comments
 (0)