There are a number of ways you can do this:
1. The sum of first consecutive positive n integers is given by: n * (n+1) / 2
You can use this to find ans(sum 700 - 801) in the following way:
- (a) Find out sum of first 801 +ve integers
- (b) Find out sum of first 700 +ve integers
subtract b from a to get ans.
2. There is direct formula to find sum of any arithmatic series(the difference between two consecutibe numbers is constant)
S = n/2 (2a + (n-1)*d)
in this case:
n (number of termsin the list) = 801 - 700 + 1 = 102
d (common difference) = 1
thus S = 102/2 (2*700 + 101 * 1) = 76551
3. There is a neat trick from Guass to do this. You can google for details.
For a bit ofexplanations, look at:
https://www.nzmaths.co.nz/HelpCentre/Seminars/Gauss.aspx