Skip to content

Commit 2688532

Browse files
Better UI warning
1 parent 3c04533 commit 2688532

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

FindAFactor/_find_a_factor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ std::string find_a_factor(const std::string &toFactorStr, const bool &isConOfSqr
11951195
smoothPrimes.push_back(p);
11961196
}
11971197
}
1198-
if (smoothPrimes.size() < maxPrimeCount) {
1198+
if (isConOfSqr && (smoothPrimes.size() < maxPrimeCount)) {
11991199
std::cout << "Warning: Factor base truncated to " << smoothPrimes.size() << " factors. If you don't want to truncate, set the trial division level option higher." << std::endl;
12001200
}
12011201
// From 1, this is a period for wheel factorization

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
setup(
2828
name='FindAFactor',
29-
version='3.7.0',
29+
version='3.7.1',
3030
author='Dan Strano',
3131
author_email='dan@unitary.fund',
3232
description='Find any nontrivial factor of a number',

0 commit comments

Comments
 (0)