Re: [Python-ideas] Add the imath module

On 2018-07-13 10:43, Jacco van Dorp wrote:
If there's going to be failure possible primality tests, there should also exist certain ones. No matter how slow it can be to do it.
A certain primality test would be too specialized for the Python stdlib. If you really need that (which you typically don't), there are existing number theory packages.

2018-07-13 11:13 GMT+02:00 Jeroen Demeyer <J.Demeyer@ugent.be>:
You forgot to include my reasons for this:
Depending on function names, of course. It needn't be the fastest available, but its what people would expect, especially those with less experience. Also, there's existing number theory packages for everything suggested here, so that's not an argument. At the very least, use is_likely_prime() as function name. Otherwise, the name of the function is just plain wrong. Don't claim accuracy you don't have.

2018-07-13 11:13 GMT+02:00 Jeroen Demeyer <J.Demeyer@ugent.be>:
You forgot to include my reasons for this:
Depending on function names, of course. It needn't be the fastest available, but its what people would expect, especially those with less experience. Also, there's existing number theory packages for everything suggested here, so that's not an argument. At the very least, use is_likely_prime() as function name. Otherwise, the name of the function is just plain wrong. Don't claim accuracy you don't have.
participants (2)
-
Jacco van Dorp
-
Jeroen Demeyer