diff --git a/script.apl b/script.apl
@@ -5,20 +5,20 @@
⍝ Computes the sum of the digits of a positive integer N
∇ SUM←SUMDIGITS N
- SUM←+/10|⌊N÷10⋆(⍳⌊(10⍟N)+1)-1
+ SUM←+/10|⌊N÷10⋆(⍳⌊1+10⍟N)-1
∇
⍝ Given a positive integer A, returns 1 if the conjecture holds for all pairs
⍝ (A, B) with B=1, ..., A and 0 otherwise
-∇ RES←TEST A
+∇ RESULT←TEST A
BS←⍳A
- SUMSB←SUMDIGITS¨BS
- SUMSAPLUSB←SUMDIGITS¨(BS+A)
- RES←∧/0=9|(SUMSAPLUSB-SUMSB+A)
+ SUMSBS←SUMDIGITS¨BS
+ SUMSAPLUSBS←SUMDIGITS¨BS+A
+ RESULT←∧/0=9|SUMSAPLUSBS-SUMSBS+A
∇
⍝ Checks if the conjecture holds for all pairs (A, B) with A, B = 1, ..., MAX
-∇ RES←CONJECTUREHOLDSUPTO MAX
- RES←∧/TEST¨⍳MAX
+∇ RESULT←CONJECTURE MAX
+ RESULT←∧/TEST¨⍳MAX
∇