Computer Science, asked by kausar1492, 3 months ago

Write a program to find sum of all prime numbers between 100 and 500.​

Answers

Answered by Himanshu8715
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