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

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.

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

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

just realized i idiotically did that backwards sorry ignore ill figure it out
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.
use dpaste.com to post code - it's easier for us to look at and talk about

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

Not the answer you are looking for?

Search for more explanations.

Ask your own question