![]() |
|
|
#1 |
|
Jun 2003
3 Posts |
How do I convert the exponent I'm currently testing from scientific notation into standard notation (i.e. - a 'normal' number, with 6 million or so digits)?
It'd make one helluva text file :D I tried doing it in Windows Calculator. It didn't work ;) An example of what I want to achieve is at http://www.mersenne.org/prime5.txt, which is better known as Michael Cameron's (2^13466917)-1 Bragoria |
|
|
|
|
|
#2 |
|
Aug 2002
Ann Arbor, MI
433 Posts |
I know if you use Mathematica it will print out all the digits. But you either need access to a lisenced version, or have you're own version of Kazaa
. I'm not sure of freeware that does what you want.
|
|
|
|
|
|
#3 |
|
"Mike"
Aug 2002
25×257 Posts |
I did this for all 39 Mersenne primes once... I used bc I think...
Maybe I'll do it again just for fun... |
|
|
|
|
|
#4 |
|
P90 years forever!
Aug 2002
Yeehaw, FL
2·53·71 Posts |
The only program to use is mprint5 from http://www.apfloat.org/apfloat/
Fast - very, very, fast. |
|
|
|
|
|
#5 |
|
"Mike"
Aug 2002
25×257 Posts |
http://arstechnica.infopop.net/OpenTopic/page?a=tpc&s=50009562&f=122097561&m=3680928671&r=2600968772#2600968772
|
|
|
|
|
|
#6 |
|
"Mike"
Aug 2002
25×257 Posts |
Thanks George!
Here is a batch file for it... Save it as prime.bat [code:1]mprint 2 mprint 3 mprint 5 mprint 7 mprint 13 mprint 17 mprint 19 mprint 31 mprint 61 mprint 89 mprint 107 mprint 127 mprint 521 mprint 607 mprint 1279 mprint 2203 mprint 2281 mprint 3217 mprint 4253 mprint 4423 mprint 9689 mprint 9941 mprint 11213 mprint 19937 mprint 21701 mprint 23209 mprint 44497 mprint 86243 mprint 110503 mprint 132049 mprint 216091 mprint 756839 mprint 859433 mprint 1257787 mprint 1398269 mprint 2976221 mprint 3021377 mprint 6972593 mprint 13466917[/code:1] |
|
|
|
|
|
#7 |
|
"Mike"
Aug 2002
200408 Posts |
If you want to save them...
[code:1]mprint 2 > 1.txt mprint 3 > 2.txt mprint 5 > 3.txt mprint 7 > 4.txt mprint 13 > 5.txt mprint 17 > 6.txt mprint 19 > 7.txt mprint 31 > 8.txt mprint 61 > 9.txt mprint 89 > 10.txt mprint 107 > 11.txt mprint 127 > 12.txt mprint 521 > 13.txt mprint 607 > 14.txt mprint 1279 > 15.txt mprint 2203 > 16.txt mprint 2281 > 17.txt mprint 3217 > 18.txt mprint 4253 > 19.txt mprint 4423 > 20.txt mprint 9689 > 21.txt mprint 9941 > 22.txt mprint 11213 > 23.txt mprint 19937 > 24.txt mprint 21701 > 25.txt mprint 23209 > 26.txt mprint 44497 > 27.txt mprint 86243 > 28.txt mprint 110503 > 29.txt mprint 132049 > 30.txt mprint 216091 > 31.txt mprint 756839 > 32.txt mprint 859433 > 33.txt mprint 1257787 > 34.txt mprint 1398269 > 35.txt mprint 2976221 > 36.txt mprint 3021377 > 37.txt mprint 6972593 > 38.txt mprint 13466917 > 39.txt[/code:1] |
|
|
|
|
|
#8 |
|
"Mike"
Aug 2002
25×257 Posts |
M39 only took 8 seconds... :)
Here are the text files... http://www.teamprimerib.com/txt/ It takes longer to download M39 than it does to calculate it... :) If you view the output it takes forever because the bottleneck is the display... *** Warning, don't try to view the big ones in a browser! Download them! *** |
|
|
|
|
|
#9 |
|
Jun 2003
316 Posts |
Thanks heaps everyone! After a little bit of figuring out how the hell mprint works, I got it to work!
A little tip for Mersenne enthusiasts... 1. If you have created a copy of a mersenne number in standard notation, open it in Word. 2. Change the font colour to green. 3. Change the background colour to black. Now it will look like The Matrix Code! :D Regards Bragoria |
|
|
|
|
|
#10 |
|
"Mike"
Aug 2002
25×257 Posts |
I bet this next question is going to sound dumb, but...
Is there anything special about the distribution of digits in the decimal expansion of a Mersenne prime, or is that a red herring? I know in binary form a Mersenne prime is all ones... |
|
|
|
|
|
#11 | |
|
Dec 2002
Frederick County, MD
2·5·37 Posts |
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Posting log files or other text files | Xyzzy | Forum Feedback | 3 | 2018-12-30 19:37 |
| prime 95 notation | spyros | Information & Answers | 19 | 2009-06-19 20:28 |
| convert to standard ASCII text when possible? | ixfd64 | mersennewiki | 5 | 2006-04-06 00:00 |
| Temp-files after unreserving exponents | Matthias C. Noc | Software | 1 | 2004-09-17 08:54 |
| Cleared exponents that never made it into data files | GP2 | Data | 14 | 2003-09-16 03:07 |