mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2021-08-30, 16:33   #1
moytrage
 
Jul 2021

418 Posts
Default GwNum in Python

Hi! Is there any gwnum-based long-integer-arithmetics library in Python?

There exists gmpy2 library but it is only GMP based, and I don't know if this GMP version is using gwnum or not.

I heard that GMP can be compiled using gwnum support. Does anyone know if GMPY2 has this gwnum-based ready-made builds anywhere available for download?

I need both Windows and Linux versions. Windows is of higher priority.

If not GMPY2 then maybe some other gwnum-based library exists? Or maybe some C-bindings (or Cython) of gwnum for Python?

First of all I need ability to modular square a huge number. Or just powmod(a, b, c), raising a to b modulus c.

Why I want gwnum? I expect gwnum to be faster than regular GMP (without gwnum support). And I need fastest solution for my task in Python.

Last fiddled with by moytrage on 2021-08-30 at 17:03
moytrage is offline   Reply With Quote
Old 2021-08-30, 19:20   #2
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

2×7×281 Posts
Default

Quote:
Originally Posted by moytrage View Post
Hi! Is there any gwnum-based long-integer-arithmetics library in Python?
Search for embedding C in Python

paulunderwood is offline   Reply With Quote
Old 2021-08-31, 03:50   #3
moytrage
 
Jul 2021

2116 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
Search for embedding C in Python
Thanks for reply! As I understand you suggest me to write my own C-binding library for Python using gwnum?

I understand that it is possible. But the only reason I posted this thread because I wanted to check if somebody already did this effort.

Also there might exist not just plain bindings but some advanced and beautiful Python library based on gwnum. Of cause I would prefer to use such instead of regular bindings written in few hours.

Basically I wanted to check if something ready made out-of-the-box already exists.

Of cause otherwise I will write my C-bindings if nothing exists.
moytrage is offline   Reply With Quote
Old 2021-08-31, 08:06   #4
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

134418 Posts
Default

https://ielts.studyhorror.com/d/cause-or-course
kriesel is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
GPL GWNUM lavalamp Software 6 2020-12-11 07:53
GWNUM enzocreti enzocreti 22 2019-03-14 18:35
LLR V3.8.2 using gwnum 26.2 is available! Jean Penné Software 25 2010-11-01 15:18
GWNUM? Unregistered Information & Answers 3 2010-09-12 19:52
GWNUM as DLL? Cyclamen Persicum Software 1 2007-01-02 20:53

All times are UTC. The time now is 22:13.


Wed Dec 1 22:13:54 UTC 2021 up 131 days, 16:42, 1 user, load averages: 2.03, 1.65, 1.41

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

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.