mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Lounge

Reply
 
Thread Tools
Old 2003-06-07, 01:43   #1
bragoria
 
Jun 2003

3 Posts
Default 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
bragoria is offline   Reply With Quote
Old 2003-06-07, 02:07   #2
Kevin
 
Kevin's Avatar
 
Aug 2002
Ann Arbor, MI

433 Posts
Default

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.
Kevin is offline   Reply With Quote
Old 2003-06-07, 02:27   #3
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

25×257 Posts
Default

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

Maybe I'll do it again just for fun...
Xyzzy is offline   Reply With Quote
Old 2003-06-07, 02:41   #4
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

2·53·71 Posts
Default

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

Fast - very, very, fast.
Prime95 is offline   Reply With Quote
Old 2003-06-07, 02:43   #5
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

25×257 Posts
Default

http://arstechnica.infopop.net/OpenTopic/page?a=tpc&s=50009562&f=122097561&m=3680928671&r=2600968772#2600968772
Xyzzy is offline   Reply With Quote
Old 2003-06-07, 02:58   #6
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

25×257 Posts
Default

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 is offline   Reply With Quote
Old 2003-06-07, 03:10   #7
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

200408 Posts
Default

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 is offline   Reply With Quote
Old 2003-06-07, 03:15   #8
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

25×257 Posts
Default

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! ***
Xyzzy is offline   Reply With Quote
Old 2003-06-07, 09:27   #9
bragoria
 
Jun 2003

316 Posts
Default 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
bragoria is offline   Reply With Quote
Old 2003-06-07, 15:31   #10
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

25×257 Posts
Default

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...
Xyzzy is offline   Reply With Quote
Old 2003-06-07, 16:01   #11
eepiccolo
 
eepiccolo's Avatar
 
Dec 2002
Frederick County, MD

2·5·37 Posts
Default

Quote:
Originally Posted by 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...
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?
eepiccolo is offline   Reply With Quote
Reply

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

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


Sat Jul 17 13:07:55 UTC 2021 up 50 days, 10:55, 1 user, load averages: 1.49, 1.97, 1.85

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.