[Python-ideas] Add the imath module

Jeroen Demeyer J.Demeyer at UGent.be
Fri Jul 13 04:10:00 EDT 2018


On 2018-07-12 20:11, Steven D'Aprano wrote:
> about 4.7 seconds to test 2**800 + 1;

In SageMath:

sage: n = 2**800+1; timeit('is_prime(n)')
625 loops, best of 3: 303 µs per loop

That's 4 orders of magnitude faster...


More information about the Python-ideas mailing list