find the sum of all integers n from 300 to 400.

find the sum from 1 to 400

From that subtract the sum from 1 to 299