A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • 5 years ago

ok for problem set 1the second one i typed this out testingNumber = 2 divisors = 2 numberOfPrimes = 0 answer = 0 print testingNumber print divisors print numberOfPrimes print answer while numberOfPrimes <= 1000: while divisors < testingNumber or answer != 0: answer = testingNumber%divisors print answer if answer == 0: divisors += 1 else: divisors = 2 if divisors == testingNumber - 1 and answer == 0: numberOfPrimes + 1 i dont see any problem but could some one tell me whats wrong im probably doing something way wrong

  • This Question is Closed
  1. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    just realized i idiotically did that backwards sorry ignore ill figure it out

  2. carlsmith
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    http://www.nixty.com/lessons/lessonStudentLessonItem?course_id=2079&lesson_id=5483 There's some code examples and a walk through here if you're still stuck.

  3. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    use dpaste.com to post code - it's easier for us to look at and talk about

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

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

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
  • 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.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.