Question from the General knowledge for developers test

Write an algorithm that returns the sum of the first 20000 integers.