&gt; I totally agree with you on this. The code for all three languages is clearly not optimal.<p>That&#x27;s not really my point. My point&#x27;s we have no idea what TFA is trying to do or see[0], so you may be able to say &quot;this is stupid and nonsensical&quot; because it is[1], but you can&#x27;t say &quot;I&#x27;ve got a better version&quot; then provide something with a completely different behaviour.<p>[0] most likely they just threw some shit at the wall, ended up with relatively long runtimes and called that a benchmark<p>[1] or maybe not, maybe it&#x27;s a reduction of actual workload in the system doing computation based on some sort of dynamic number of items so you can&#x27;t preallocate the intermediate storage and the point&#x27;s to compare reallocation overhead[2]<p>[2] not very likely though, considering you never need the array in the first place as you&#x27;re just summing each item with the previous one, then summing every 100 item of that… anyway