input: Write a python function to compute the sum of all numbers from 1 to n.
  assert compute_sum(10) == 55
  assert compute_sum(5) == 15
  assert compute_sum(1) == 1
output: def compute_sum(n):
      return n * (n + 1) // 2