1 min read

APL Hacking: Project Euler Daily (#6)

This one was too easy, I probably am doing it wrong.

R←PESIX;⎕IO
⎕IO←1

⍝ Difference between the sum of the squares of the first
⍝ 100 natural numbers and the square of the sum of the same.

R←((+/⍳100)*2)-+/(⍳100)*2