![]() |
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
|
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 |
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. |
where can I get this RMA.net
|
Right now it is available as a pre-release candidate here:
[url]http://groups.yahoo.com/group/primeform/files/RMA/[/url] 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 |
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 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! |
Just to clarify. Let [tex]N[/tex] be any natural number. It is clear that the number of digits of [tex]N[/tex], [tex]D(N)[/tex], satisfies [tex]D(N)= \left\lfloor log_{10}(N)+1\right\rfloor[/tex].
For Riesel-type numbers [tex]N=k \cdot 2^n-1[/tex] then [tex]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[/tex], using log laws, except when [tex]k=5^n[/tex] (i.e. [tex]N+1=k \cdot 2^n = 10^n[/tex]) when we've overcalculated by one digit, and for this special case [tex]D(N)=\left\lfloor log_{10}(k)+ n \cdot log_{10}(2)\right\rfloor[/tex]. For Proth-type numbers, [tex]N=k \cdot 2^n+1[/tex] and [tex]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[/tex]. There are no special cases here since a special case would require [tex]N[/tex] to be written [tex]10000...000[/tex] in decimal notation, which is impossible since [tex]N[/tex] is odd. |
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.
|
[QUOTE=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.[/QUOTE]
Paste this into Excell: =LOG(290499495)+61514*LOG(2)+1 :smile: |
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 |
All times are UTC. The time now is 20:33. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.