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

Description of is_euler_prp #427

Closed
haru-44 opened this issue Sep 6, 2023 · 1 comment · Fixed by #428
Closed

Description of is_euler_prp #427

haru-44 opened this issue Sep 6, 2023 · 1 comment · Fixed by #428

Comments

@haru-44
Copy link

haru-44 commented Sep 6, 2023

I’m sorry to bother you again.

gmpy/src/gmpy_mpz_prp.c

Lines 134 to 135 in 2beaae2

"Then an Euler probable prime requires:\n\n"
" a**((n-1)/2) == 1 (mod n)");

This description is different from the immediately preceding comment.
I think the correct description should be a**((n-1)/2) == (a/n) (mod n) [(a/n) is the Jacobi symbol].

@haru-44
Copy link
Author

haru-44 commented Sep 8, 2023

thanks

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

Successfully merging a pull request may close this issue.

1 participant