Skip to content

Commit 5669e89

Browse files
Fix missing loop increment
1 parent b4c8f85 commit 5669e89

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

FindAFactor/_find_a_factor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ struct Factorizer {
770770
// Sieving function
771771
BigInteger sievePolynomials(const BigInteger& low, const BigInteger& high) {
772772
const BigInteger maxLcv = backwardFn(toFactorSqrt + high);
773-
for (BigInteger y = backwardFn(toFactorSqrt + 1U + low); isIncomplete && (y < maxLcv);) {
773+
for (BigInteger y = backwardFn(toFactorSqrt + 1U + low); isIncomplete && (y < maxLcv); ++y) {
774774
// Make the candidate NOT a multiple on the wheels.
775775
const BigInteger z = forwardFn(y);
776776
// This actually just goes ahead and FORCES

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"
88

99
[project]
1010
name = "FindAFactor"
11-
version = "6.0.0"
11+
version = "6.0.1"
1212
requires-python = ">=3.8"
1313
description = "Find any nontrivial factor of a number"
1414
readme = {file = "README.txt", content-type = "text/markdown"}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def build_extension(self, ext):
4040

4141
setup(
4242
name='FindAFactor',
43-
version='6.0.0',
43+
version='6.0.1',
4444
author='Dan Strano',
4545
author_email='stranoj@gmail.com',
4646
description='Find any nontrivial factor of a number',

0 commit comments

Comments
 (0)