Problem Set 1.1 ends with a non-prime number? My Code: # Problem Set 1
# Name: Cody Dostal
# Collaborators: None
# Time: 0:30
#
PotentialPrime = 1
divider = 2
primecount = 1
while primecount < 1000:
PotentialPrime = PotentialPrime + 2
divider = 2
isnotprime = 0
while divider <= (PotentialPrime/2) and isnotprime == 0:
if PotentialPrime%divider == 0:
isnotprime = 1
else:
divider = divider + 1
if isnotprime == 0:
primecount = primecount + 1
print "Potential 1000th prime: " + str(PotentialPrime) + " " + "Prime Count: "

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!

It ends with 7919, which 7919/3 = 2639 and 2639 * 7917 = Woooooooah? hahah

I mean, 2639 * 3 = 7917 = Woaaaaaaaaaaah?

Looking for something else?

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

## More answers

Looking for something else?

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