anonymous
  • anonymous
any answers for ps1b, I'm not sure I'm right?
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.
jamiebookeater
  • jamiebookeater
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
https://gist.github.com/926240
anonymous
  • anonymous
A very interesting approach. The only issue I have with it is the apriori knowledge you have to have to know that the 1000th prime is less than 8000. Can you correct the code so you no longer require that information?
anonymous
  • anonymous
Good point, I'll give it a shot. Are the print statements (lines 31-33) along the right lines - have I understood the question correctly?

Looking for something else?

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

More answers

anonymous
  • anonymous
Yeah, those are fine.
anonymous
  • anonymous
Thanks for the response so far, appreciated. I have come up with a solution that removes the "prior knowledge" problem. See https://gist.github.com/937869. This code could be more efficient, but do you think I have reached a stage where I should continue on to the next assignment yet? Many thanks, Joe
anonymous
  • anonymous
Lol, very nice. You hardly need this course ;p
anonymous
  • anonymous
Cool, I'm going to keep going, that one took me hours!

Looking for something else?

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