2 added 2 characters in body

# Brachylog, 24 bytes

:efL:{:2^.}a+S,L+:2^:S-.


Expects the 2 numbers in Input as a list, e.g. [91:123].

### Explanation

:efL                     Find the list L of all integers in the range given in Input
:{:2^.}a             Apply squaring to each element of that list
+S,          Unify S with the sum of the elements of that list
L+:2^     Sum the elements of L, then square the result
:S-. Unify the Output with that number minus S


# Brachylog, 24 bytes

:efL:{:2^.}a+S,L+:2^:S-.


Expects the 2 numbers in Input as a list, e.g. [91:123].

### Explanation

:efL                     Find the list of all integers in the range given in Input
:{:2^.}a             Apply squaring to each element of that list
+S,          Unify S with the sum of the elements of that list
L+:2^     Sum the elements of L, then square the result
:S-. Unify the Output with that number minus S


# Brachylog, 24 bytes

:efL:{:2^.}a+S,L+:2^:S-.


Expects the 2 numbers in Input as a list, e.g. [91:123].

### Explanation

:efL                     Find the list L of all integers in the range given in Input
:{:2^.}a             Apply squaring to each element of that list
+S,          Unify S with the sum of the elements of that list
L+:2^     Sum the elements of L, then square the result
:S-. Unify the Output with that number minus S

1

# Brachylog, 24 bytes

:efL:{:2^.}a+S,L+:2^:S-.


Expects the 2 numbers in Input as a list, e.g. [91:123].

### Explanation

:efL                     Find the list of all integers in the range given in Input
:{:2^.}a             Apply squaring to each element of that list
+S,          Unify S with the sum of the elements of that list
L+:2^     Sum the elements of L, then square the result
:S-. Unify the Output with that number minus S