Skip to content

adds Euler Criterion method#1

Open
egealpay wants to merge 1 commit into
Robert-Campbell-256:masterfrom
egealpay:master
Open

adds Euler Criterion method#1
egealpay wants to merge 1 commit into
Robert-Campbell-256:masterfrom
egealpay:master

Conversation

@egealpay

Copy link
Copy Markdown

Hi,

I made a small contribution by adding Euler's Criterion

@Robert-Campbell-256

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

Copy link
Copy Markdown
Owner

@Robert-Campbell-256

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

Copy link
Copy Markdown
Owner

@CanoeFZH

CanoeFZH commented Oct 9, 2019

Copy link
Copy Markdown

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

@CanoeFZH

CanoeFZH commented Oct 9, 2019

Copy link
Copy Markdown

#5

@Robert-Campbell-256

Copy link
Copy Markdown
Owner

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

@Robert-Campbell-256

Copy link
Copy Markdown
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
Copy Markdown
Owner

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

@CanoeFZH

Copy link
Copy Markdown

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