-
Notifications
You must be signed in to change notification settings - Fork 43
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
adds Euler Criterion method #1
base: master
Are you sure you want to change the base?
Conversation
Ege,
OK - Only one issue. When you worked with the code your editor made a number of minor changes - mostly just changing the number of leading spaces to indent, as well as some other formatting changes. Unfortunately this is flagged by diff as though most of the file was changed - not just a few lines - and makes it harder to check the changes.
Could I ask you to pull a fresh copy of the file and add your changes to it without changing the formatting?
Rob Campbell
|
Will add this Euler Criterion function without adding new empty line and spaces in a new PR. |
OK - Give me a day or so to look at the code and accept the pull. |
Looks good. I'll merge it today, although I will then come back and make the change "a ** ((p - 1) / 2) % p" --> "pow(a,(p-1)/2,p)" to ensure that fast exponentiation is used. I feel a little bad, because this is essentially the same reasonable addition that egealpay recommended last year. I wish there was a way to give him joint credit for the pull. (Sigh ... had I been more energetic then I could have just accepted it and then re-edited to fix the minor formatting issues. Live and learn.) |
Or, well, "a ** ((p - 1) / 2) % p" --> "pow(a,(p-1)//2,p)" actually. (Duh, Python 3 ...) |
Man, don't be that sad. It's important things are moving on. I was also a part time learner who is somehow has some interests on numbers. It' not important who is got merged. Thanks for your sharing. I like the document and the code you write. |
Hi,
I made a small contribution by adding Euler's Criterion