creates an array of ints from 1 to 100 and finds the sum