mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Lounge (https://www.mersenneforum.org/forumdisplay.php?f=7)
-   -   Large Digit Calculator (https://www.mersenneforum.org/showthread.php?t=5493)

 Primeinator 2006-02-15 01:36

Large Digit Calculator

Can someone recommend a program that will run on Windows XP that can multiply and find the exact decimal digits of numbers the size of the recent Mersenne primes? I've done some looking on Google but haven't found anything yet.

-Thanks.

 Citrix 2006-02-15 03:18

There is no such program in the market. You will have to write one for your self. You should use the GMP library or look into the code of prime95.

Citrix

 casevh 2006-02-15 06:20

If you are willing to use the Python programming language, I wrote a libary called DecInt specifically designed to calculate very large numbers in exact decimal format. It will use GMP if GMPY (GMP for Python) is available.

For Python, go to [url]www.python.org[/url]

For DecInt and GMPY, go to home.comcast.net/~casevh

For psyco (a Just In Time compiler), go to [url]http://sourceforge.net/project/showfiles.php?group_id=41036[/url]

Using an AMD Athlon MP2800+, I'm able to calculate M43 in under 7 seconds.

 victor 2006-02-15 22:41

Mprint : [url]http://www.apfloat.org/apfloat/[/url] :)

 Primeinator 2006-02-16 05:19

[QUOTE]Mprint : [url]http://www.apfloat.org/apfloat/[/url] :)[/QUOTE]

Merci beaucoup! :w00t: This is exactly what I was looking for. My only complaint (and this is being too picky) is that I can't set the size of the window to copy paste a result in a desirable format.

 victor 2006-02-16 12:18

[QUOTE=Primeinator]Merci beaucoup! :w00t: This is exactly what I was looking for. My only complaint (and this is being too picky) is that I can't set the size of the window to copy paste a result in a desirable format.[/QUOTE]
De rien :)

To output the result in a text/plain file, type
mprint [I]exponent[/I] > file.txt

 Primeinator 2006-02-16 23:08

Into the command line? Do I just put that around the result I am figuring?

 ixfd64 2006-02-16 23:11

Suppose you wanted to print out M607 in m607.txt.

You would type "mprint 607 > m607.txt".

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