Skip to content

Conversation

egealpay
Copy link

Hi,

I made a small contribution by adding Euler's Criterion

@Robert-Campbell-256
Copy link
Owner

Robert-Campbell-256 commented Jan 21, 2018 via email

@Robert-Campbell-256
Copy link
Owner

Robert-Campbell-256 commented Jan 22, 2018 via email

@CanoeFZH
Copy link

CanoeFZH commented Oct 9, 2019

Will add this Euler Criterion function without adding new empty line and spaces in a new PR.

@CanoeFZH
Copy link

CanoeFZH commented Oct 9, 2019

#5

@Robert-Campbell-256
Copy link
Owner

OK - Give me a day or so to look at the code and accept the pull.

@Robert-Campbell-256
Copy link
Owner

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.)

@Robert-Campbell-256
Copy link
Owner

Or, well, "a ** ((p - 1) / 2) % p" --> "pow(a,(p-1)//2,p)" actually. (Duh, Python 3 ...)

@CanoeFZH
Copy link

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.

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 this pull request may close these issues.

3 participants