Help With Problem 1a
initial=1
Denom=3
OddPrime=True
PrimeNumber=0
if (Denom/2)*2==Denom:
OddPrime=False
print 'Number is even.'
else:
OddPrime=True
print 'Number is odd, checking if prime..'
if OddPrime==True:
while PrimeNumber<1001:
for i in range(initial,Denom):
if Denom%i==0:
OddPrime=False
if OddPrime==False:
Denom+=2
else:
OddPrime=True
if OddPrime==True:
Denom+=2
PrimeNumber+=1
if PrimeNumber==1000

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!

I dont understand why this isnt working correctly. Please help

Opps. Bottom should look like
if PrimeNumber==1000:
print Denom

please paste you code on dpaste.com or pastebin.com. it'll help with debugging

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.