Hey! We 've verified this expert answer for you, click below to unlock the details :)
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.
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
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.
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!