The first prime numbers are 2 and 3. Their sum is 5.
Wiki User
∙ 2010-01-26 00:00:34MARYAM MULLA
The sum of the first prime numbers is 5
Because the first prime numbers are 2 & 3.
Thus , 2 + 3 =5
The sum is 5
I hope you understand my reason for my answer.
By grade 4 th student
byeee
to print the sum of first ten numbers:- void main() {int i,sum; sum=0; while(i<=10) sum=sum+i; i=i+1; } printf("The sum is : %d",sum); }
Write an. Algorthim. To. Find the. Sum. Of. First15 natural. Numbers
CLS: DEFINT SUM: SUM = 0 FOR K = 1 to N SUM = SUM + N NEXT K PRINT "The sum of the first "; N; "natural numbers is "; SUM; ".": PRINT PRINT "You're welcome. The pleasure is ours. Drop in any time." END
first you answer for my question
//Sum of n numbers.#includevoid main(){int a[],n,sum=0;printf("enter total number of numbers you want to sum up");scanf("%d",&n);printf("Enter the numbers one by one");for(int i=0;i{scanf("%d",&a[i]);}for(int j=0;j{sum+=a[j];}printf("The Sum of %d numbers is = %d",n,sum);}IF YOU MEANT "SUM OF FIRST N NUMBERS THEN THIS IS THE PROGRAM IN c"#include main(){int n;printf (" enter the number upto which you want the sum : ");scanf ("%d",&n);int res;res = (n * (n+1)/2);printf ("sum of first %d numbers is %d", n,res);getch();}
the sum of the first 15 prime numbers is 328 .
The sum of the first 25 prime numbers is 1,060.
The sum of the first 250 prime numbers is 182,109.
The sum of the first five prime numbers is 28. The sum of the cubes of the first three prime numbers is 160. The average of 28 and 160 is 94.
The sum of the first 8 prime numbers is 77.
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 four prime numbers is 17.
The sum of the first 100 prime numbers is 24,133
The sum of the first four prime numbers is 17.
Their sum is 328.
The sum of the first 25 prime numbers is 1,060.