STINNER Victor <vstin...@python.org> added the comment:

I dislike the idea of adding a is_prime() function in Python since users will 
likely stress Python with huge numbers and then complain that Python is too 
slow. Correct is_prime() is very slow for large numbers, and statistically 
approach is not 100% correct... Or we may have to add both approaches. But then 
you have to pick an algorithm which would fit "most use cases".

I concur with Tim, it would be better to put such opinionated code on PyPI ;-)

--

I'm -0 on adding math.lcm(). For example, I failed to find any request to add 
such function on python-ideas archives. This issue seems to be the first user 
request.

I'm not opposed to add it. Some people seem to like the idea of the 
completeness of the stdlib (gcd & lcm go together). So if someone wants to add 
it, go ahead and propose a PR :-)

----------

_______________________________________
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