View Single Post
Old 2008-08-31, 08:08   #6
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

100111101101102 Posts
Default

Quote:
Originally Posted by Uncwilly View Post
Great idea. Maybe someone can throw together a Java version of this.
Java? Why waste Java for that. Javascript will do. Just drop this code in a "digits.html" file on your desktop and click on it
Code:
<HTML><HEAD><TITLE>Conversion Exponent/Digits JavaScript</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1251">
<SCRIPT language=JavaScript>
<!--
function DigitsExp(){document.convert.Digits.value = document.convert.Exponent.value*0.301029995664;}
function ExpDigits(){document.convert.Exponent.value = document.convert.Digits.value/0.301029995664;}
//-->
</SCRIPT>
<META content="MSHTML 6.00.6000.16705" name=GENERATOR></HEAD>
<BODY text=#fExpDigitsc03 vLink=#ffffff link=#ffffff bgColor=#000000>
<CENTER>
<TABLE cellPadding=5 border=1><TBODY><TR><TD>
<FORM name=convert>
<H1>Mersenne Prime Digits</H1>
<INPUT onblur=DigitsExp();  onfocus="document.convert.Digits.value='';" maxLength=10 size=10 value=0 name=Exponent>
<FONT size=+2>Exponent</FONT> 
<INPUT onclick=DigitsExp(); type=button value=">>"> <INPUT onclick=ExpDigits(); type=button value="<<"> 
<FONT size=+2>Digits</FONT>
<INPUT onblur=ExpDigits();  onfocus="document.convert.Exponent.value='';" maxLength=10 size=10 name=Digits> </FORM></TR></TBODY>
</TABLE>
</BODY>
</HTML>
--Serge
Attached Files
File Type: zip digits.zip (648 Bytes, 325 views)
Batalov is offline   Reply With Quote