Your goal is to write a program that prints a number. The bigger the number, the more points you'll get. But be careful! Code length is both limited and heavily weighted in the scoring function. Your printed number will be divided by the cube of the number of bytes you used for your solution.
So, let's say you printed 10000000
and your code is 100
bytes long. Your final score will be \$\frac {10000000} {100^3} = 10\$.
There are other rules to follow, in order to make this challenge a bit harder.
- You cannot use digits in your code (0123456789);
- You can use mathematical/physical/etc. constants, but only if they are less than 10. (e.g. You can use \$\pi \approx 3.14\$ but you can't use the Avogadro constant \$= 6\times 10^{23}\$)
- Recursion is allowed but the generated number needs to be finite (so infinite is not accepted as a solution. Your program needs to terminate correctly, assuming unbounded time and memory, and generate the requested output);
- You cannot use the operations
*
(multiply),/
(divide),^
(power) nor any other way to indicate them (e.g.2 div 2
is not allowed); - Your program can output more than one number, if you need it to do that. Only the highest one will count for scoring;
- However, you can concatenate strings: this means that any sequence of adjacent digits will be considered as a single number;
- Your code will be run as-is. This means that the end-user cannot edit any line of code, nor he can input a number or anything else;
- Maximum code length is 100 bytes.
Leaderboard
- Steven H., Pyth \$\approx f_{\Gamma_0+7}(256^{26})\$
- Simply Beautiful Art, Ruby \$\approx f_{\Gamma_0}(3)\$
- Peter Taylor, GolfScript \$\approx f_{\varepsilon_0+\omega+1}(17)\$
- r.e.s., GolfScript \$\approx f_{\varepsilon_0}^9(126)\approx f_{\varepsilon_0+1}(9)\$ [1]
- Simply Beautiful Art, Ruby \$\approx f_{\omega^{\omega2}+1}(126^22^{126})\$
- eaglgenes101, Julia \$\approx f_{\omega^3}(127)\$
- col6y, Python 3, \$\approx 127\to126\to\dots\to2\to1\approx f_{\omega^2}(127)\$ [1][3]
- Toeofdoom, Haskell, \$\approx a_{20}(1)\approx f_{\omega+1}(18)\$ [1]
- Fraxtil, dc, \$\approx 15\uparrow^{166665}15\$ [3]
- Magenta, Python, \$\approx\mathrm{ack}(126,126)\approx10\uparrow^{124}129\$
- Kendall Frey, ECMAScript 6, \$\approx1000\uparrow^43\$ [1]
- Ilmari Karonen, GolfScript, \$\approx10\uparrow^310^{377}\$ [1]
- Aiden4, Rust, \$\approx10\uparrow^3127\$
- BlackCap, Haskell, \$\approx10\uparrow\uparrow65503\$
- recursive, Python, \$\approx2\uparrow\uparrow11\approx10\uparrow\uparrow8.63297\$ [1][3]
- n.m., Haskell, \$\approx2\uparrow\uparrow7\approx10\uparrow\uparrow4.63297\$ [1]
- David Yaw, C, \$\approx10^{10^{4\times10^{22}}}\approx10\uparrow\uparrow4.11821\$ [2]
- primo, Perl, \$\approx10^{(12750684161!)^{5\times2^{27}}}\approx10\uparrow\uparrow4.11369\$
- Art, C, \$\approx10^{10^{2\times10^6}}\approx10\uparrow\uparrow3.80587\$
- Robert Sørlie, x86, \$\approx10^{2^{2^{19}+32}}\approx10\uparrow\uparrow3.71585\$
- Tobia, APL, \$\approx10^{10^{353}}\approx10\uparrow\uparrow3.40616\$
- Darren Stone, C, \$\approx10^{10^{97.61735}}\approx10\uparrow\uparrow3.29875\$
- ecksemmess, C, \$\approx10^{2^{320}}\approx10\uparrow\uparrow3.29749\$
- Adam Speight, vb.net, \$\approx10^{5000\times2^{256}}\approx10\uparrow\uparrow3.28039\$
- Joshua, bash, \$\approx10^{10^{15}}\approx10\uparrow\uparrow3.07282\$
Footnotes
- If every electron in the universe were a qubit, and every superposition thereof could be gainfully used to store information (which, as long as you don't actually need to know what's being stored is theoretically possible), this program requires more memory than could possibly exist, and therefore cannot be run - now, or at any conceiveable point in the future. If the author intended to print a value larger than ≈10↑↑3.26 all at once, this condition applies.
- This program requires more memory than currently exists, but not so much that it couldn't theoretically be stored on a meager number of qubits, and therefore a computer may one day exist which could run this program.
- All interpreters currently available issue a runtime error, or the program otherwise fails to execute as the author intended.
- Running this program will cause irreparable damage to your system.
Edit @primo: I've updated a portion of the scoreboard using a hopefully easier to compare notation, with decimals to denote the logarithmic distance to the next higher power. For example \$10↑↑2.5 = 10^{10^{\sqrt {10}}}\$. I've also changed some scores if I believed to user's analysis to be faulty, feel free to dispute any of these.
Explanation of this notation:
If \$0 \le b \lt 1\$, then \$a \uparrow\uparrow b = a^b\$.
If \$b \ge 1\$, then \$a \uparrow\uparrow b = a^{a \uparrow\uparrow (b-1)}\$.
If \$b \lt 0\$, then \$a \uparrow\uparrow b = \log_a(a \uparrow\uparrow (b+1))\$
An implementation of this notation is provided in Python that let's you test reasonably sized values.
12e10
(12*10^10) as12*10^10
? \$\endgroup\$