9 billion names of God the integer: Difference between revisions

→‎{{header|JavaScript}}: fixed nonsense/untested code...
m (→‎{{header|GAP}}: Regularize non-standard header markup)
(→‎{{header|JavaScript}}: fixed nonsense/untested code...)
Line 2,167:
}
 
// PL clearly this was not tested:
// console.log("Sums")[23, 123, 1234, 12345].foreach(function (a) {
console.log("Sums");
[23, 123, 1234, 12345].forEach(function (a) {
var s = cumu(a);
console.log(a, s[s.length - 1]);
7,820

edits