Returns the sum of all numbers up to n.
n
Example:
print(sumTo(5)); // prints: 15
int sumTo(int n) { return n * (n + 1) ~/ 2; }