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
Hi! Realy interesting project! But faild to launch miscellaneous/double.py
Tryed python3 and got this
Traceback (most recent call last):
File "miscellaneousdouble.py", line 250, in
C1 = cuberoot((d1 + modular_sqrt(40824 * Q2[0]**3 + 142884, P)) * inv(2, P), P)
File "miscellaneousdouble.py", line 74, in modular_sqrt
if legendre_symbol(a, p) != 1:
File "miscellaneousdouble.py", line 52, in legendre_symbol
ls = (pow(a, ((p - 1) / 2), p))
TypeError: pow() 3rd argument not allowed unless all arguments are integers
Tryed python2 and got this
Traceback (most recent call last):
File "miscellaneousdouble.py", line 250, in
C1 = cuberoot((d1 + modular_sqrt(40824 * Q2[0]**3 + 142884, P)) * inv(2, P), P)
File "miscellaneousdouble.py", line 38, in cuberoot
assert pow(root,3,p) == a%p
AssertionError
How can i fix this?
The text was updated successfully, but these errors were encountered:
Hi! Realy interesting project! But faild to launch miscellaneous/double.py
Tryed python3 and got this
Traceback (most recent call last):
File "miscellaneousdouble.py", line 250, in
C1 = cuberoot((d1 + modular_sqrt(40824 * Q2[0]**3 + 142884, P)) * inv(2, P), P)
File "miscellaneousdouble.py", line 74, in modular_sqrt
if legendre_symbol(a, p) != 1:
File "miscellaneousdouble.py", line 52, in legendre_symbol
ls = (pow(a, ((p - 1) / 2), p))
TypeError: pow() 3rd argument not allowed unless all arguments are integers
Tryed python2 and got this
Traceback (most recent call last):
File "miscellaneousdouble.py", line 250, in
C1 = cuberoot((d1 + modular_sqrt(40824 * Q2[0]**3 + 142884, P)) * inv(2, P), P)
File "miscellaneousdouble.py", line 38, in cuberoot
assert pow(root,3,p) == a%p
AssertionError
How can i fix this?
The text was updated successfully, but these errors were encountered: