A community for students.
Here's the question you clicked on:
 0 viewing
anonymous
 5 years ago
any answers for ps1b, I'm not sure I'm right?
anonymous
 5 years ago
any answers for ps1b, I'm not sure I'm right?

This Question is Closed

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0A 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
 5 years ago
Best ResponseYou've already chosen the best response.0Good point, I'll give it a shot. Are the print statements (lines 3133) along the right lines  have I understood the question correctly?

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0Yeah, those are fine.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0Thanks 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
 5 years ago
Best ResponseYou've already chosen the best response.0Lol, very nice. You hardly need this course ;p

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0Cool, I'm going to keep going, that one took me hours!
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.