A community for students.
Here's the question you clicked on:
 0 viewing
anonymous
 4 years ago
I could not figure out how to complete problem 2 of assignment 2 in the 6.00 class. I watched lectures 14 and was still clueless. with help I was able to finally answer problem one which is to write code to find the 1000th prime. I ended up looking for the answer to see what I was supposed to do, yet the answer that I got doesn't work. It says log isn't defined, can someone give me a web address to a place where the correct answer is so I can see what it should be. Thanks.
anonymous
 4 years ago
I could not figure out how to complete problem 2 of assignment 2 in the 6.00 class. I watched lectures 14 and was still clueless. with help I was able to finally answer problem one which is to write code to find the 1000th prime. I ended up looking for the answer to see what I was supposed to do, yet the answer that I got doesn't work. It says log isn't defined, can someone give me a web address to a place where the correct answer is so I can see what it should be. Thanks.

This Question is Closed

anonymous
 4 years ago
Best ResponseYou've already chosen the best response.0What problem set are you talking about 2 or 1? PS 1 is the problem set about prime numbers.

anonymous
 4 years ago
Best ResponseYou've already chosen the best response.0http://pythonism.wordpress.com/2008/05/04/lookingatprimenumbersinpython/

anonymous
 4 years ago
Best ResponseYou've already chosen the best response.0the log function is in the math module which needs to be imported http://dpaste.com/694206/
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.