mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Lounge (https://www.mersenneforum.org/forumdisplay.php?f=7)
-   -   Creating text files of exponents in standard notation (https://www.mersenneforum.org/showthread.php?t=644)

bragoria 2003-06-07 01:43

Creating text files of exponents in standard notation
 
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

Kevin 2003-06-07 02:07

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 :rolleyes: . I'm not sure of freeware that does what you want.

Xyzzy 2003-06-07 02:27

I did this for all 39 Mersenne primes once... I used bc I think...

Maybe I'll do it again just for fun...

Prime95 2003-06-07 02:41

The only program to use is mprint5 from http://www.apfloat.org/apfloat/

Fast - very, very, fast.

Xyzzy 2003-06-07 02:43

http://arstechnica.infopop.net/OpenTopic/page?a=tpc&s=50009562&f=122097561&m=3680928671&r=2600968772#2600968772

Xyzzy 2003-06-07 02:58

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]

Xyzzy 2003-06-07 03:10

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]

Xyzzy 2003-06-07 03:15

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! ***

bragoria 2003-06-07 09:27

Yay!
 
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

Xyzzy 2003-06-07 15:31

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...

eepiccolo 2003-06-07 16:01

[quote="Xyzzy"]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...[/quote]
You know, a friend of mine was asking that very question a couple days ago when I was telling him about the project. Of course, I didn't have the answer, but maybe someone else dose?


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

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