File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 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
1924print ("Any low quality score (particularly less than 1.0, but even higher) might be worth excluding." )
2025print ("MAX quality scores are the best to include." )
You can’t perform that action at this time.
0 commit comments