mersenneforum.org  

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

Reply
 
Thread Tools
Old 2004-03-14, 06:19   #1
dans
 
dans's Avatar
 
Oct 2002

101012 Posts
Default Idle curiosity: How to covert a huge prime to acutal digits for viewing?

How would one go about converting the formula 2^33219278-1 (Or any huge power for that matter) into the actual digits?

I understand the basic mathmatics, I also understand that it will be 10's of millions of digits long, I am just wonder how I get my computer to display all of the actual digits? Excel just laughs at my attemp of entering =2^33219278 it just results in an error :) How does one go about doing this?

Thanks!
-Dan
dans is offline   Reply With Quote
Old 2004-03-14, 07:19   #2
sdbardwick
 
sdbardwick's Avatar
 
Aug 2002
North San Diego County

5·137 Posts
Default

Take a look here: http://www.apfloat.org/apfloat/

You'll probably want this file (there is a readme in the .zip): http://www.apfloat.org/apfloat/mprintc5.zip
sdbardwick is offline   Reply With Quote
Old 2004-03-15, 07:43   #3
dans
 
dans's Avatar
 
Oct 2002

3×7 Posts
Default That did the trick

Perfect, thank you!

Quote:
Originally Posted by sdbardwick
Take a look here: http://www.apfloat.org/apfloat/

You'll probably want this file (there is a readme in the .zip): http://www.apfloat.org/apfloat/mprintc5.zip
dans is offline   Reply With Quote
Old 2004-03-15, 08:14   #4
sdbardwick
 
sdbardwick's Avatar
 
Aug 2002
North San Diego County

5·137 Posts
Default

No problem! Glad to help. Props to Xyzzy for originally prompting me to bookmark the site...
sdbardwick is offline   Reply With Quote
Old 2004-03-16, 13:22   #5
jinydu
 
jinydu's Avatar
 
Dec 2003
Hopefully Near M48

6DE16 Posts
Default

Strange, it just downloads a file with 0 bytes!
jinydu is offline   Reply With Quote
Old 2004-03-16, 14:41   #6
sdbardwick
 
sdbardwick's Avatar
 
Aug 2002
North San Diego County

5×137 Posts
Default

Quote:
Originally Posted by jinydu
Strange, it just downloads a file with 0 bytes!
Just worked fine for me. Do you have any anti-virus software set to block downloading of zip files?
sdbardwick is offline   Reply With Quote
Old 2004-03-17, 12:29   #7
jinydu
 
jinydu's Avatar
 
Dec 2003
Hopefully Near M48

2·3·293 Posts
Default

Don't think so, I've succeeded in downloading other zip files before.
jinydu is offline   Reply With Quote
Old 2004-03-31, 22:05   #8
juergen
 
Mar 2004

111012 Posts
Default

Quote:
Originally Posted by sdbardwick
Take a look here: http://www.apfloat.org/apfloat/

You'll probably want this file (there is a readme in the .zip): http://www.apfloat.org/apfloat/mprintc5.zip
Hi, I just read this. Does anybody know which multi precision package is the fastest for large integer operations. Especially for "exponential residue" calculations (I don''t know if this is the correct name) I mean calcualtions like the ones which have to be done to use the Little Theorem of Fermat (a^(p-1) mod p)?

Is apfloat faster or slower for this type of calculation?
Are there even faster libraries for this type of calculation?
I use a Pentium Processor at the moment.
juergen is offline   Reply With Quote
Old 2004-03-31, 22:34   #9
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

32·5·107 Posts
Default

Quote:
Originally Posted by juergen
Hi, I just read this. Does anybody know which multi precision package is the fastest for large integer operations. Especially for "exponential residue" calculations (I don''t know if this is the correct name) I mean calcualtions like the ones which have to be done to use the Little Theorem of Fermat (a^(p-1) mod p)?

Is apfloat faster or slower for this type of calculation?
Are there even faster libraries for this type of calculation?
I use a Pentium Processor at the moment.
I have been told that GMP (Gnu Multi Precision) library (http://www.swox.com/gmp) is among the fastest. It is partially coded in Assembly language, and makes use of hardware optimizations like MMX and SSE2 registers. I also guess that such algorithm would be easy (although not trivial) to code with GMP.

Luigi
ET_ is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ok so now where can I test a huge prime besides gimps ONeil Information & Answers 33 2018-04-21 13:55
Mersenne Digits Curiosity davar55 Lounge 11 2013-02-08 15:19
An aliquot sequence with huge, huge, huge tracts of sand !!! garambois Aliquot Sequences 50 2012-01-19 18:25
I think I found a huge prime monst Lounge 16 2008-01-16 21:01
55-58celcius idle CPU... is it safe to run prime on it? optim Hardware 19 2004-10-24 12:32

All times are UTC. The time now is 17:43.


Fri Jul 16 17:43:29 UTC 2021 up 49 days, 15:30, 1 user, load averages: 1.76, 1.53, 1.51

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.