Skip to content

Commit 6edfba6

Browse files
Make wheel_tuner.py as crystal clear as I can
1 parent e21bd2b commit 6edfba6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

wheel_tuner.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
if (x % p) == 0:
1515
mult_count += 1
1616

17-
print("Prime = " + str(p) + ", quality = " + (str((1 / p) / ((mult_count / smooth_num_count))) if mult_count else "MAX"))
17+
# When counting, 1 in every p numbers is a multiple of p.
18+
# Do we have FEWER smooth number multiples than this? Then this is a GOOD candidate to remove from sieving.
19+
# Do we have MORE smooth number multiples than this? Then this is a BAD candidate to remove from sieving.
20+
# So we INCLUDE the numbers that are GOOD candidates in wheel factorization (so they DON'T occur in sieving),
21+
# and we EXCLUDE the numbers that are BAD candidates in wheel factorization (so they DO occur in sieving).
22+
print("Prime = " + str(p) + ", quality = " + (str((1 / p) / (mult_count / smooth_num_count)) if mult_count else "MAX"))
1823

1924
print("Any low quality score (particularly less than 1.0, but even higher) might be worth excluding.")
2025
print("MAX quality scores are the best to include.")

0 commit comments

Comments
 (0)