problem set 1: i thought i figured out a test to see if a number is prime but now i'm having problems with the script. If I enter a prime number, I get the correct answer (I included a print statement to indicate when a number is prime.) If I enter any other number, the script either runs indefinitely until I force it to quit or I get a false positive. Here's a link to my current script: http://dpaste.com/524568/
I most recently ran the test with the number 8 and got the statement: "8 is a prime number." Does anyone see what I'm doing wrong here?

Hey! We 've verified this expert answer for you, click below to unlock the details :)

I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!

Sure thing. Let me know if you get stuck.

Looking for something else?

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