We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1912d0 commit 4e5b829Copy full SHA for 4e5b829
FindAFactor/_find_a_factor.cpp
@@ -1041,6 +1041,12 @@ struct Factorizer {
1041
}
1042
// The parity is necessarily even in this factor, by now.
1043
1044
+ // Note that forcing a perfect square is the only part of our
1045
+ // modified Quadratic Sieve that changes the distribution of
1046
+ // distinct smooth numbers on the sieving range, in theory,
1047
+ // (if wheel factorization is not applied to sieving).
1048
+ // Otherwise, we're just reusing sieving failures that would
1049
+ // occur anyway to do checks nearly at random, but near 0 cost.
1050
1051
// This number is necessarily a smooth perfect square.
1052
return num;
0 commit comments