gibney.org
:
Math
:
Busy Beaver in Javascript
(Entry Nr. 1538, by user 1 |
edit
)
Imagine Javascript had infinite big numbers. What function that fits into a line of 80 characters length would return the biggest number? <br> <br>The current Champion is the following function from benjoffe whom I met on the #startups irc channel: <br> <br><div class=div_content_code>function f(){a=b=c=2;while(a++<9e999999){while(b--)c=Math.pow(c,c);b=c}return c}</div> <br> <br>I did not really wrap my head around that one though. Will do so one of these days. Here is another one, that I understand (also from benjoffe): <br> <br><div class=div_content_code>function f(){x=i=2;while(i++<9e99999999999999999999999)x=Math.pow(x,x);return x}</div>
Create a new entry at this position