mersenneforum.org  

Go Back   mersenneforum.org > Other Stuff > Archived Projects > 15k Search

 
 
Thread Tools
Old 2005-09-24, 16:46   #1
grobie
 
grobie's Avatar
 
Sep 2005
Raleigh, North Carolina

337 Posts
Default Number of digits display

I was wondering how do I change the ini or what ever for my primes to display total digits. I have seen some posts that have it that way. Thanks in advance
grobie is offline  
Old 2005-09-24, 19:05   #2
Pconfig
 
Jun 2004

5510 Posts
Default

You can calcutlate the number of digits yourself

log(base) * log(n) + log(k)
Round this number to above (ceil) and you have the number of digits
Pconfig is offline  
Old 2005-09-24, 22:45   #3
TTn
 

608010 Posts
Default

Do you want a windows application that does just this?
I can make a separate application accesory.

RMA.NET displays this on it's main window, along with the number of primes you have found in the prime.txt file.
 
Old 2005-09-25, 05:48   #4
grobie
 
grobie's Avatar
 
Sep 2005
Raleigh, North Carolina

337 Posts
Default

where can I get this RMA.net
grobie is offline  
Old 2005-09-25, 06:31   #5
TTn
 

3×7×131 Posts
Post

Right now it is available as a pre-release candidate here:

http://groups.yahoo.com/group/primeform/files/RMA/

Join the primeform group in order to view, and download files from the menu, on the left.

You must have Microsoft.NET framework installed to use this software.
Let me know if you have any problems.

TTn
 
Old 2005-09-25, 09:59   #6
grobie
 
grobie's Avatar
 
Sep 2005
Raleigh, North Carolina

337 Posts
Default

Hmm, tryed to d/l exe file and this pops up:

Application has generated an exception that could not be handled.

Process id=0x85c (2140), Thread id=0xae0 (2784).

Do you have a clue whats wrong?
grobie is offline  
Old 2005-09-25, 18:33   #7
TTn
 

22·3·277 Posts
Default

grobie Hmm, tryed to d/l exe file and this pops up:
Application has generated an exception that could not be handled.
Process id=0x85c (2140), Thread id=0xae0 (2784).
Do you have a clue whats wrong?

You need Microsofts' .NET framework, which is available at the windows update site. I prefer it from CD though.
If you do already have the framework, it must be broken!
.NET applications always work on machines, with the proper framework installed. This application has been tested, and works.

I hope this helps!
 
Old 2005-09-26, 06:48   #8
Dougy
 
Dougy's Avatar
 
Aug 2004
Melbourne, Australia

23·19 Posts
Default

Just to clarify. Let N be any natural number. It is clear that the number of digits of N, D(N), satisfies D(N)= \left\lfloor log_{10}(N)+1\right\rfloor.

For Riesel-type numbers N=k \cdot 2^n-1 then D(N)=\left\lfloor log_{10}(N)+1\right\rfloor = \left\lfloor log_{10}(k \cdot 2^n-1)+1\right\rfloor=\left\lfloor log_{10}(k \cdot 2^n)+1\right\rfloor=\left\lfloor log_{10}(k)+ log_{10}(2^n)+1\right\rfloor=\left\lfloor log_{10}(k)+ n \cdot log_{10}(2)+1\right\rfloor, using log laws, except when k=5^n (i.e. N+1=k \cdot 2^n = 10^n) when we've overcalculated by one digit, and for this special case D(N)=\left\lfloor log_{10}(k)+ n \cdot log_{10}(2)\right\rfloor.

For Proth-type numbers, N=k \cdot 2^n+1 and D(N)= \left\lfloor log_{10}(N)+1\right\rfloor=\left\lfloor log_{10}(k \cdot 2^n+1)+1\right\rfloor=\left\lfloor log_{10}(k \cdot 2^n)+1\right\rfloor=\left\lfloor log_{10}(k)+ log_{10}(2^n)+1\right\rfloor=\left\lfloor log_{10}(k)+ n \cdot log_{10}(2)+1\right\rfloor. There are no special cases here since a special case would require N to be written 10000...000 in decimal notation, which is impossible since N is odd.
Dougy is offline  
Old 2005-09-26, 08:40   #9
grobie
 
grobie's Avatar
 
Sep 2005
Raleigh, North Carolina

1010100012 Posts
Default

Ok, show me with this prime how to calculate it: 290499495 61514 I know its small but I really want to learn how to figure out how many digits a given prime is.
grobie is offline  
Old 2005-09-26, 10:01   #10
Cruelty
 
Cruelty's Avatar
 
May 2005

2×809 Posts
Default

Quote:
Originally Posted by grobie
Ok, show me with this prime how to calculate it: 290499495 61514 I know its small but I really want to learn how to figure out how many digits a given prime is.
Paste this into Excell:
=LOG(290499495)+61514*LOG(2)+1
Cruelty is offline  
Old 2005-09-26, 10:54   #11
TTn
 

2×5×857 Posts
Default Solution

Grobie,
I found that security settings will make this exact error come up.

The solution is to right click on RMA.exe, and choose "Save Target As..."
This will work for you.



Please let me know what you think.
TTn
 
 

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
who can help me factor this 155 digits number sinide Factoring 12 2010-11-09 01:05
who can factor this 128 digits number? aaa120 Factoring 19 2010-09-04 09:16
Number Of Digits; I Hate To Ask storm5510 Other Mathematical Topics 14 2010-08-31 01:16
Factoring 132-digits Number abc_temp Factoring 14 2007-12-23 20:25
how do you find number of digits of a 2^n number? Unregistered Math 11 2004-11-30 22:53

All times are UTC. The time now is 22:51.

Wed Oct 21 22:51:13 UTC 2020 up 41 days, 20:02, 1 user, load averages: 1.51, 1.63, 1.68

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.