Ask your own question, for FREE!
MIT 6.189 Intro to Programming (Python) 9 Online
OpenStudy (littlebird):

Assume the availability of a function is_prime. Assume a variable n has been associated with positive integer. Write the statements needed to compute the sum of the first n prime numbers. The sum should be associated with the variable total.

OpenStudy (littlebird):

total=0 number = 0 n = 1 while number <= n: if is_prime(n) == True: total += n break (my attempt)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Arriyanalol: i need help
19 hours ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
22 hours ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!