Just joined no experience before so this exercise is doing my head in. Here is what I have and it just loops. Any help would be greatly appreciated.
n=int (1) ##This will act as counter
s=int (3) ## A number to get us started
divs=int (2) ## Integers I will diving with.
while n<5: ## to ensure I kill at 1000th prime
while s%2 != 0: ## If its an even number it isnt prime
while divs

MIT 6.00 Intro Computer Science (OCW)
Just joined no experience before so this exercise is doing my head in. Here is what I have and it just loops. Any help would be greatly appreciated.
n=int (1) ##This will act as counter
s=int (3) ## A number to get us started
divs=int (2) ## Integers I will diving with.
while n<5: ## to ensure I kill at 1000th prime
while s%2 != 0: ## If its an even number it isnt prime
while divs

MIT 6.00 Intro Computer Science (OCW)
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!

else: n= n+1
else: s = s+1
else: print s

I need the slap face smiley!! Thank you for your patience.

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.