Vedran Čačić <ved...@gmail.com> added the comment:

Tim: Considering that congruence is _defined_ as x=y(mod m) :<=> m|y-x, it's 
really not so surprising. :-)

Steven: It seems that we completely agree about inclusion of 
is_probabilistic_prime in stdlib. And we agree that it should be called isprime 
(or is_prime if Raymond names it;). About the bikeshedding, see Tim's comment. 
:-P

About absolutely correct algorithms: first, what exactly is your claim? If it's 
"I can write an algorithm in pure Python that can for every number of 397 
digits mathematically exactly determine whether it is prime in under 6 
seconds", I'd very much like to see that algorithm. (I guess it must be 
publicly available, since we're speaking about inclusion in Python stdlib.) I 
really don't have much expertise in number theory that I can be convinced it 
doesn't exist, but I very much doubt it.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39479>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to