mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Software (https://www.mersenneforum.org/forumdisplay.php?f=10)
-   -   python code to calculate modular residue (https://www.mersenneforum.org/showthread.php?t=21669)

tanaydin 2016-10-19 11:21

python code to calculate modular residue
 
1 Attachment(s)
Hello,

I made a small python code to calculate residue based on example at [url]http://www.mersenne.org/various/math.php[/url]

When you run it, enter 23 as power, 47 as the divider and it will output 1 as residue.


All times are UTC. The time now is 06:02.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.