You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
same problem: J08nY/ecgen#23 pari.qfbsolve(pari.Qfb(1, 0, -D), 4 * m, 1) is slow because pari try to factor m every time.
our solution:
m = Integer(sys.argv[1])
out = subprocess.check_output(['./yafu'], input=f'factor({m})'.encode())
for p in [int(a.split(b' = ')[1]) for a in out.splitlines() if b' = ' in a and a[0] == b'P'[0]]:
if p > 1000:
pari.addprimes(p)
seems we can replace yafu with default sage factor(m)
The text was updated successfully, but these errors were encountered:
same problem: J08nY/ecgen#23
pari.qfbsolve(pari.Qfb(1, 0, -D), 4 * m, 1)
is slow because pari try to factor m every time.our solution:
seems we can replace yafu with default sage
factor(m)
The text was updated successfully, but these errors were encountered: