Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

miscellaneous/double.py problem #9

Open
forumfinanc opened this issue Nov 6, 2021 · 2 comments
Open

miscellaneous/double.py problem #9

forumfinanc opened this issue Nov 6, 2021 · 2 comments

Comments

@forumfinanc
Copy link

forumfinanc commented Nov 6, 2021

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?

@forumfinanc

This comment has been minimized.

@Noname400
Copy link

потому что есть случайная генерация
и равенство не проходит

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants