![]() |
![]() |
#1 | |
Random Account
Aug 2009
Not U. + S.A.
3·761 Posts |
![]() Quote:
This must be longer than 517,042 digits. Log(2) * 1717566 = 517,039. This is without the exponentiation, multiplication, and the subtraction of 1. I captured mprint's output to a file. It is 6,535,835 bytes in length. There are no extra characters beyond a CRLF at the end which accounts for only two bytes. mprint wrote it all as a single line. Only Notepad++ could open it. |
|
![]() |
![]() |
![]() |
#2 |
Mar 2006
Germany
56278 Posts |
![]()
Using pfgw with
Code:
pfgw64 -od -q"993*2^1717566-1" >prime.txt including the expression in front and some spaces at the end. Deleting those will give the exact 517,042 digits (using only the standard Editor in WIN). The number of digits you can also use WolframAlpha. |
![]() |
![]() |
![]() |
#3 | |
"Curtis"
Feb 2005
Riverside, CA
124158 Posts |
![]() Quote:
I mean, you did the hard work to get 517,039... it boggles my mind that you faceplant when trying to get from there to 517,042. |
|
![]() |
![]() |
![]() |
#4 |
Undefined
"The unspeakable one"
Jun 2006
My evil lair
2×17×193 Posts |
![]()
Python also agrees:
Code:
>>> len(str(993*2**1717566-1)) 517042 |
![]() |
![]() |
![]() |
#5 |
Random Account
Aug 2009
Not U. + S.A.
3×761 Posts |
![]()
OK. I will take your word for it. No dispute.
. . It appears mprint assumes "2^" in front. What I actually did was 2^2^..... Running mprint without parameters produces this: Code:
USAGE: mprint p [base] [perfect] Outputs 2^p-1 in base base to stdout If you add the third parameter, it outputs 2^(p-1)*2^(p-1) Oh well, more of a curiosity than anything else. |
![]() |
![]() |
![]() |
#6 |
Einyen
Dec 2003
Denmark
D1916 Posts |
![]()
mprint only print Mersenne numbers 2p-1 but can print it in different bases for example decimal, hexidecimal etc.
To get the number of digits in k*bn + c: First ignore "+ c" unless c is HUGE and/or b and n are very very small. log (k*bn) = log(k) + n*log(b) In your case: log10(993*2^1717566-1) = log10(993) + 1717566*log10(2) ~ 3 + 1717566*log10(2) In general: log(a*b) = log(a) + log(b) and log(ab) = b*log(a) Last fiddled with by ATH on 2022-05-31 at 15:09 |
![]() |
![]() |
![]() |
#7 |
"Oliver"
Sep 2017
Porta Westfalica, DE
26×17 Posts |
![]() |
![]() |
![]() |
![]() |
#8 | |
"Rashid Naimi"
Oct 2015
Remote to Here/There
2×3×379 Posts |
![]() Code:
\\ I learned this from SM. In PARI-GP allocatemem() allocatemem() allocatemem() allocatemem() length(Str(2^82589933 - 1)) ## Quote:
Largest known prime number 2^82,589,933 - 1 The Great Internet Mersenne Prime Search (GIMPS) has discovered the largest known prime number, 2^82,589,933 - 1, having 24,862,048 digits. 51st known Mersenne prime found | Announce - News ![]() Last fiddled with by a1call on 2022-05-31 at 17:45 |
|
![]() |
![]() |
![]() |
#9 |
Mar 2006
Germany
B9716 Posts |
![]() |
![]() |
![]() |
![]() |
#10 | |
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
33·367 Posts |
![]()
pfgw64 -od -q"{this or many other forms, including U(), gcd() etc}" | awk '{print length($2)}'
and done ___________________ Quote:
|
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add repeated digits after a number until it is prime | sweety439 | sweety439 | 74 | 2022-05-17 19:28 |
Palindrome prime number of digits is always odd (except 11, and this is true in any base) | bur | And now for something completely different | 13 | 2021-09-23 01:32 |
number of digits | enzocreti | enzocreti | 1 | 2020-01-16 18:23 |
The "one billion minus 999,994,000" digits prime number | a1call | Miscellaneous Math | 179 | 2015-11-12 14:59 |
how do you find number of digits of a 2^n number? | Unregistered | Math | 11 | 2004-11-30 22:53 |