Post History
Ruby, 70 67 66 bytes ->c{a=0;c.bytes{|b|a,=[b<106?a+b/3-34:b<112?p(a):a*a,0]-[-1,256]}} Test this online!
Answer
#4: Post edited
- # [Ruby](https://www.ruby-lang.org), <del>70</del> <del>67</del> 66 bytes
- ```ruby
- ->c{a=0;c.bytes{|b|a,=[b<106?a+b/3-34:b<112?p(a):a*a,0]-[-1,256]}}
- ```
**[Test this online!](https://ato.pxeger.com/run?1=hVHLToQwFI1bvuKGWTCDrfIaRJSZhXHhNyALGEC7AWJL4oThS9yQqB-lH-E32JZHUCfxtkkPOefcc0tf3p7qZN-95sH9e81y7H3c4M2uiQPjaneW7FlGm0NyiFGgh8m1abjb-DQ5t7Ht-PzTtLbVMl75sR5HOMQmstZuhIy27Vt9nnxxP4MA8GZJiqpmCMqa8XMFaakAcERBvROMD4tGSlp1Im6fq2zHsnQwCUmPpCYPpT6a5FgFHSxDyYpUUURwqBFCKS01BJqhRbDgc4AxUKngCE0la3neyHM4M3PBf3W8vQwmsy1UJnL4L0LuhYuctWdbl6PrDzF0KUVRUhI-C0cyCY3LRKbb7yn8CDddhhBhH6VFyR5J8TBjRVGakt8lUx3-1qNV4HG-n3fvn73r-vMb)**
- # [Ruby](https://www.ruby-lang.org), <del>70</del> <del>67</del> 66 bytes
- ```ruby
- ->c{a=0;c.bytes{|b|a,=[b<106?a+b/3-34:b<112?p(a):a*a,0]-[-1,256]}}
- ```
- **[Test this online!](https://ato.pxeger.com/run?1=hVHLToQwFI1bvuKGWTAztsprEFFmEhMXfgOy4KndALElccLwJW5I1I_Sj_AbbMsjqJN426SHnHPuuaUvb091vO9ec__-vWY5dj9u8DZpIl-_Ss7iPctoc4gPEfKD-NrQnV10Gp9b2LI9_mmYu2oZrbxoHSE9xAE2kLlxwrbtO32efHE7Ax_wdkmKqmYIyprxcwVpqQBwREG9E4wHi0ZKWnUibp-rLGFZOpiEpEdSkwdSH05yrMIaTF3JilRRRHCgEUIpLTUEmq6FsOBzgD5QqeAITSVruu7Iczgzc8F_dby9DCazLVQGsvkPQs6Fg-yNa5mXo-sPMXQpRVFSEj4LRzIJjctAhtPvKfwIN12GEGEfpUXJHknxMGNFUZqS3yVTbf7Wo1Xgcb6fd--fvev68xs)**
#3: Post edited
# [Ruby](https://www.ruby-lang.org), <del>70</del> 67 bytes- ```ruby
->c{a=0;c.bytes{|b|a,=*[b<106?a+b/3-34:b<112?p(a):a*a]-[-1,256],0}}- ```
- **[Test this online!](https://ato.pxeger.com/run?1=hVHLToQwFI1bvuKGWTCDrfIaRJSZhXHhNyALGEC7AWJL4oThS9yQqB-lH-E32JZHUCfxtkkPOefcc0tf3p7qZN-95sH9e81y7H3c4M2uiQPjaneW7FlGm0NyiFGgh8m1abjb-DQ5t7Ht-PzTtLbVMl75sR5HOMQmstZuhIy27Vt9nnxxP4MA8GZJiqpmCMqa8XMFaakAcERBvROMD4tGSlp1Im6fq2zHsnQwCUmPpCYPpT6a5FgFHSxDyYpUUURwqBFCKS01BJqhRbDgc4AxUKngCE0la3neyHM4M3PBf3W8vQwmsy1UJnL4L0LuhYuctWdbl6PrDzF0KUVRUhI-C0cyCY3LRKbb7yn8CDddhhBhH6VFyR5J8TBjRVGakt8lUx3-1qNV4HG-n3fvn73r-vMb)**
- # [Ruby](https://www.ruby-lang.org), <del>70</del> <del>67</del> 66 bytes
- ```ruby
- ->c{a=0;c.bytes{|b|a,=[b<106?a+b/3-34:b<112?p(a):a*a,0]-[-1,256]}}
- ```
- **[Test this online!](https://ato.pxeger.com/run?1=hVHLToQwFI1bvuKGWTCDrfIaRJSZhXHhNyALGEC7AWJL4oThS9yQqB-lH-E32JZHUCfxtkkPOefcc0tf3p7qZN-95sH9e81y7H3c4M2uiQPjaneW7FlGm0NyiFGgh8m1abjb-DQ5t7Ht-PzTtLbVMl75sR5HOMQmstZuhIy27Vt9nnxxP4MA8GZJiqpmCMqa8XMFaakAcERBvROMD4tGSlp1Im6fq2zHsnQwCUmPpCYPpT6a5FgFHSxDyYpUUURwqBFCKS01BJqhRbDgc4AxUKngCE0la3neyHM4M3PBf3W8vQwmsy1UJnL4L0LuhYuctWdbl6PrDzF0KUVRUhI-C0cyCY3LRKbb7yn8CDddhhBhH6VFyR5J8TBjRVGakt8lUx3-1qNV4HG-n3fvn73r-vMb)**
#2: Post edited
# [Ruby](https://www.ruby-lang.org), 70 bytes- ```ruby
->c{a=0;c.bytes{a=(_1<106?a+=_1/3-34:_1<112?p(a):a*=a)<0||a==256?0:a}}- ```
**[Test this online!](https://ato.pxeger.com/run?1=hVFLTsMwFBTbnOKpXaQpDthpEkKo2xVInKFUlZsPeJNU2JGo2pyETSXgUOUQnAHbaaIClXi25JFn5s2z_Pr-XC3Xu7ecPnxUMnej_Z07STaM4pvkYrmWmVB4sCBjgsMpO6cLcjlyR36sb4g3XQ2YE7MhZc4Yb7eMUi8Ipzhmdd10-zz7Ui0kUHAnA16sKomgrKQ6HUhLC0AhAb17zcTQ3xhJ3euI25dVlsgsPZi0pEFGk8-Mft7J3R4MwcNWVqSWpYNnNudCiNJGYGN7Dn01B-ADlWqOi9SwXhS1vIJHZiX4r063N8H8aGsVQT7yAhRehcgPopF33br-EIcupS7BS65mUcgkoXYRRMJmd-EnuO4xnGt7Ky1K-cSLxyNWlxAp_10m1Vf_3Vo1buf7-fbm23e75vwG)**
- # [Ruby](https://www.ruby-lang.org), <del>70</del> 67 bytes
- ```ruby
- ->c{a=0;c.bytes{|b|a,=*[b<106?a+b/3-34:b<112?p(a):a*a]-[-1,256],0}}
- ```
- **[Test this online!](https://ato.pxeger.com/run?1=hVHLToQwFI1bvuKGWTCDrfIaRJSZhXHhNyALGEC7AWJL4oThS9yQqB-lH-E32JZHUCfxtkkPOefcc0tf3p7qZN-95sH9e81y7H3c4M2uiQPjaneW7FlGm0NyiFGgh8m1abjb-DQ5t7Ht-PzTtLbVMl75sR5HOMQmstZuhIy27Vt9nnxxP4MA8GZJiqpmCMqa8XMFaakAcERBvROMD4tGSlp1Im6fq2zHsnQwCUmPpCYPpT6a5FgFHSxDyYpUUURwqBFCKS01BJqhRbDgc4AxUKngCE0la3neyHM4M3PBf3W8vQwmsy1UJnL4L0LuhYuctWdbl6PrDzF0KUVRUhI-C0cyCY3LRKbb7yn8CDddhhBhH6VFyR5J8TBjRVGakt8lUx3-1qNV4HG-n3fvn73r-vMb)**
#1: Initial revision
# [Ruby](https://www.ruby-lang.org), 70 bytes ```ruby ->c{a=0;c.bytes{a=(_1<106?a+=_1/3-34:_1<112?p(a):a*=a)<0||a==256?0:a}} ``` **[Test this online!](https://ato.pxeger.com/run?1=hVFLTsMwFBTbnOKpXaQpDthpEkKo2xVInKFUlZsPeJNU2JGo2pyETSXgUOUQnAHbaaIClXi25JFn5s2z_Pr-XC3Xu7ecPnxUMnej_Z07STaM4pvkYrmWmVB4sCBjgsMpO6cLcjlyR36sb4g3XQ2YE7MhZc4Yb7eMUi8Ipzhmdd10-zz7Ui0kUHAnA16sKomgrKQ6HUhLC0AhAb17zcTQ3xhJ3euI25dVlsgsPZi0pEFGk8-Mft7J3R4MwcNWVqSWpYNnNudCiNJGYGN7Dn01B-ADlWqOi9SwXhS1vIJHZiX4r063N8H8aGsVQT7yAhRehcgPopF33br-EIcupS7BS65mUcgkoXYRRMJmd-EnuO4xnGt7Ky1K-cSLxyNWlxAp_10m1Vf_3Vo1buf7-fbm23e75vwG)**