Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
⟦₁s.+?∧ ⟦₁ Inclusive range from 1 to the input number s A consecutive sublist (trying longest sublists first) . is the output + Its sum ? is the input ∧ Break unification with the output