This challenge is for the largest finite number you can get BrainFuck programs of given lengths to contain in memory.
We must use one of the BF versions that uses big integers for the cells rather than byte values as not to be capped at 255. Do not use negative positions and values in memory. Do not use the BF instruction to input memory, also the output instruction is not needed.
Challenge:
Write Brainfuck programs with lengths from 0 to 50. Your score is the sum of each programs maximum value in memory.
As they may well be trivial feel free to omit the programs listed below and start from a length of 16, I'll use the following for the smaller sizes:
Length, Score, Program
0, 0
1, 1, +
2, 2, ++
3, 3, +++
Pattern Continues
10, 10, ++++++++++
11, 11, +++++++++++
12, 12, ++++++++++++
13, 16, ++++[->++++<]
14, 20, +++++[->++++<]
15, 25, +++++[->+++++<]
Total Score: 139
Related but different:
See the comments below for more info.
The combined results so far, being the sum of the best of each size:
length: 16 to 24
by sligocki
100, 176, 3175, 3175, 4212
4212, 6234, 90,963, 7,467,842
length: 25 to 30
by sligocki
239,071,921
length: 31, 32, 33, (34 to 37)
by sligocki
380,034,304
30,842,648,752
39,888,814,654,548
220,283,786,963,581
length: 38
based on code by l4m2, by alan2here
(4 ^ 1366 - 4) / 3
length: 39 to 47
based on code by l4m2, by alan2here
Σ (n = 4 to 12) of (fn(0) | f(x) := (4x+2 - 4) / 3)
length: 48
based on code by l4m2, by alan2here
(172) - 2
length: 49, 50
by l4m2
(<sup>21</sup>2) - 2
(<sup>26</sup>2) - 2
cells which can take on any integer value without overflowing
, though it's impossible to actually get above 255 anyway. This extension seems like a more interesting question (that bans negative positions as well. I don't think eiher should be closed \$\endgroup\$