anonymous
  • anonymous
So I have a question about PS#1 Problem 2. Below is my code. What I can't figure out is how to sum up the logs of the primes. I could put them in a tuple or a list, but then I don't know how to get them back to sum them up. I'm thinking there must be an easier solution. Any guidance would be appreciated. http://dpaste.com/500766/
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
chestercat
  • chestercat
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
Rather than saying that logprime = log(testnum) why not say logprime = logprime + log(testnum)
anonymous
  • anonymous
hehe. yep. as soon as I posted this, I realized how to fix it. See http://dpaste.com/500812/ Thanks again polpak.

Looking for something else?

Not the answer you are looking for? Search for more explanations.