MIT 6.00 Intro Computer Science (OCW) OpenStudy (anonymous):

i need help with problem set 1 b!!! anyone??? :) tx OpenStudy (anonymous):

This is what i got. Any comments? from math import * prime_candidate = 3 divisor = 2 prime_number = 2 given_number = 10000 partial_sum = log(2) print "2 is prime number 1" while prime_candidate <= given_number: while prime_candidate%divisor != 0: divisor=divisor+1 if divisor == prime_candidate: print prime_candidate, 'is prime' partial_sum = partial_sum + log(prime_candidate) prime_candidate = prime_candidate+2 divisor=2 else: prime_candidate = prime_candidate+2 divisor=2 else: print partial_sum, 'is the sum of all the logarithms of the' 'prime numbers between 2 and', given_number, print 'the previous sum.' print 'divided by', given_number ,'equals', partial_sum/given_number

Latest Questions Joe348: Is it rational to replace Columbus Day with Indigenous Peoples Day?
2 minutes ago 0 Replies 0 Medals brianagatica14: Would u rather own a horse the size of a cat. or own a cat the size of a mouse?
5 seconds ago 3 Replies 0 Medals JamesTDG: If f(x) = x^2 u2013 26 and g(x) = x u2013 4, what is the domain of (StartFraction f Over g EndFraction) (x)? Show your work! I changed the equation so I can
7 minutes ago 0 Replies 0 Medals brianagatica14: If animals could talk what would be the rudest species of them all?
11 minutes ago 0 Replies 0 Medals ilikefart7: i like my farts wet nd bubbly here lemme show u
11 minutes ago 64 Replies 1 Medal Sprinkles285: Answer the questions below. Use the rubric in the materials for help if needed. Your response should consist of three complete sentences in Spanish.
23 minutes ago 0 Replies 0 Medals kward64: ok i sung i forrogt the name of the song aready but i sung someones song and here it is https://voca.
2 minutes ago 24 Replies 0 Medals ilikefart7: @FrogGirlEmmy https://voca.ro/1fLDcsNtJOMl
19 minutes ago 51 Replies 2 Medals KyledaGreat: Your backpacker's guide contains a grid map of Paris, with each unit on the grid representing 0.
36 minutes ago 4 Replies 0 Medals TETSXPREME: help
34 minutes ago 2 Replies 0 Medals