This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients minipython, serhiy.storchaka, steven.daprano
Date 2020-12-29.14:05:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609250751.4.0.0192581149121.issue42779@roundup.psfhosted.org>
In-reply-to
Content
Are you sure that this is a time of calculating pow() and not the time of calculating decimal representation of the result?

On my computer:

>>> t = time(); a = pow(c, 2**14+1); time()-t
11.957276344299316
>>> t = time(); a = pow(c, 2**15+1); time()-t
36.08853316307068
>>> t = time(); a = pow(c, 2**16+1); time()-t
107.43462753295898

The computational complexity is O((log(c)*e)**1.5). And it needs not so much memory: around 20 MB for final result, and few times more for intermediate results, so this is not matter of swapping.
History
Date User Action Args
2020-12-29 14:05:51serhiy.storchakasetrecipients: + serhiy.storchaka, steven.daprano, minipython
2020-12-29 14:05:51serhiy.storchakasetmessageid: <1609250751.4.0.0192581149121.issue42779@roundup.psfhosted.org>
2020-12-29 14:05:51serhiy.storchakalinkissue42779 messages
2020-12-29 14:05:51serhiy.storchakacreate