Write a program to find sum of all prime numbers between 100 and 500.
Answers
Answered by
0
Answer:
x = 0
for i in range (100,501):
for j in range (2,i):
if i%j == 0:
break
else:
x += i
print ("Sum of all prime numbers between 100 and 500 is : ", x)
Similar questions