20.08.19 13:53
57fe Administrator
|
Re: Pollard's kangaroo with Python 2.7
Here is some code on Python. The code is single-threaded, and its main purpose is to introduce anybody who interested in the game. The code requires no external modules in their simplest variant. If you wish to speed up calculations by a factor 15 approximately, install gmpy2 module, then uncomment lines 3, 44 and comment line 45. The simplest variant with modular inversion written on Python is also fast enough, 32-bit problem takes ~30 sec on my Core i5-5xxx. Any questions and ideas are welcomed!
|