what is the sum of the prime numbers from 1 to 100
Answers
Answered by
1
Answer:
1060
Step-by-step explanation:
when i run this program and enter 100 it's showing the result is 1058 But the sum of all prime numbers upto 100 must be 1060.
Answered by
0
Sum of the 1 to 100 numbers is
n(n+1)/2
100×(100+1)/2
100 ×101/2
50×101
5050
Similar questions