![]() |
![]() |
#1 |
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
34·131 Posts |
![]()
I could not find a good simple thread for this.
I think that maybe we should have a sub-forum someplace for the handy sites like this and mersenne.info and Dario's ECM applet. I found and error in the calculations on this page: http://mersenne-aries.sili.net/exponent.php Code:
echo '<div>has '.number_format(ceil($_REQUEST['exponentdetails'] * log(2))).' decimal digits</div>'; Code:
echo '<div>has '.number_format(ceil($_REQUEST['exponentdetails'] * log(2) / ln(10) )).' decimal digits</div>'; This page: http://mersenne-aries.sili.net/digits.php does the calculation correctly. HTH ![]() |
![]() |
![]() |
![]() |
#2 |
Jun 2003
124018 Posts |
![]()
if a language has both log and ln, then first one will be base-10 log and second one will be natural log. In which case, log(2) is sufficient. OTOH, may be you typoed and meant log(2) / log(10)?
|
![]() |
![]() |
![]() |
#3 | |
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
1061110 Posts |
![]() Quote:
Code:
<script type="text/javascript"> function DigitsExp() { document.getElementById('digits_text_input').value = Math.ceil(document.getElementById('exponent_text_input').value * (Math.log(2) / Math.LN10)); // log(2, 10) = 0.301029995664 } function ExpDigits() { document.getElementById('exponent_text_input').value = Math.floor(document.getElementById('digits_text_input').value / (Math.log(2) / Math.LN10)); // log(2, 10) = 0.301029995664 } </script> |
|
![]() |
![]() |
![]() |
#4 | |
Jun 2003
19×283 Posts |
![]() Quote:
EDIT:- I am, of course, talking about "echo '<div>has '.number_format(ceil($_REQUEST['exponentdetails'] * log(2) / ln(10) )).' decimal digits</div>';" thing. EDIT2:- PHP log function takes an optional base argument, so log(2, 10) would be the way to go. EDIT3:- Or better yet, use log10(2) Last fiddled with by axn on 2011-11-02 at 13:45 |
|
![]() |
![]() |
![]() |
#5 | |
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#6 |
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
297316 Posts |
![]()
I saw Chalsall's post over here: http://mersenneforum.org/showthread.php?t=17049
So, I decide to go over and submit all of the results I had lying around. It does not give credit for factors it already knows about. ![]() And I broke the website. I submitted this Factor5 result: Code:
Trial-factoring M11111111111111111111111 in [2^1, 2^100-1] M11111111111111111111111 has a factor: 5246666666666666666666614201 - Program: L5.0x M11111111111111111111111 has 1 factors in [2^1, 2^100-1]. ![]() |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
http://mersenne-aries.sili.net (stats site) | James Heinrich | Marin's Mersenne-aries | 51 | 2015-08-25 02:31 |
mersenne.ca (ex mersenne-aries.sili.net) | LaurV | mersenne.ca | 8 | 2013-11-25 21:01 |
I don't get the 'http://mersenne.org/primenet/' | joblack | Information & Answers | 28 | 2010-03-24 22:13 |
Who are Marin's Mersenne-aries? | Xyzzy | Marin's Mersenne-aries | 12 | 2006-01-08 04:28 |
Mersenne Wiki: Improving the mersenne primes web site by FOSS methods | optim | PrimeNet | 13 | 2004-07-09 13:51 |