any answers for ps1b, I'm not sure I'm right?

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.

Get our expert's

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions.

A community for students.

any answers for ps1b, I'm not sure I'm right?

MIT 6.00 Intro Computer Science (OCW)
See more answers at brainly.com
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.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions

https://gist.github.com/926240
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?
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?

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

Yeah, those are fine.
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
Lol, very nice. You hardly need this course ;p
Cool, I'm going to keep going, that one took me hours!

Not the answer you are looking for?

Search for more explanations.

Ask your own question