I have been working on the "find the 1000th prime" for awhile now.( several hours yesterday; before I watched lecture 3 as well as a couple hours today after watching it.) All of the practice really helped but I have ran into a problem that I haven't been able to troubleshoot myself. My current code wouldn't fit so the problem I have is with the range command. I have:
"for divisors in range(1,10)"
then later I check if the current number (var1) has a remainder with:
"if var1%divisors!=0:"
Once the code gets to that it goes straight to my else statement.

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!

You should make a counter

Looking for something else?

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