Skip to content

Commit c948266

Browse files
authored
Update qs.sage
1 parent 1bddcd8 commit c948266

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qs.sage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import itertools
77
import sys
88

99

10-
def trial_division_minus_even_powers(n, P):
10+
def trial_division_odd_pows(n, P):
1111
a, r, pw = [], n, 0
1212
while (r & 1) == 0:
1313
pw += 1
@@ -23,7 +23,7 @@ def trial_division_minus_even_powers(n, P):
2323

2424

2525
def minifactor(x, P):
26-
p = trial_division_minus_even_powers(x, P)
26+
p = trial_division_odd_pows(x, P)
2727
if p[1] == 1: return p # if 1 then x is b-smooth
2828

2929

0 commit comments

Comments
 (0)