The first five prime numbers are 2,3,5,7,11. The sum of the first five prime numbers is 28.The sum is: 2+3+5+7+11 = 28
The first three odd numbers are 1, 3, and 5. Their sum is 1 + 3 + 5 = 9.
it is 5
The first five prime numbers are 2, 3, 5, 7, 11. The sum of these five numbers is 28.
88
The sum of the first two prime numbers is 5.
The first five prime numbers are 2,3,5,7,11. The sum of the first five prime numbers is 28.The sum is: 2+3+5+7+11 = 28
The sum of the first 100 even numbers is 10,100
The first three odd numbers are 1, 3, and 5. Their sum is 1 + 3 + 5 = 9.
it is 5
The sum of all the first 100 even numbers is 10,100.
If that's the first five, the sum is 28.
6
1+1+1+1+1+=5 * * * * * The question did not ask for the sum of the first counting number five times! The sum of the first 5 counting numbers is 1+2+3+4+5 = 15. Such sums are known as triangular numbers.
9801 * The sum of the first two odd numbers (1+3) is 4, or 22 * The sum of the first three odd numbers (1+3+5) is 9, or 32 * The sum of the first four odd numbers (1+3+5+7) is 16, or 42 * ...and so on So the sum of the first 99 odd numbers, using the pattern above, would be 992 or 9801.
The first five prime numbers are 2, 3, 5, 7, 11. The sum of these five numbers is 28.
int sum = 0; int i; for(i = 0; i < n; ++i) { sum += i; }