I'm having difficulty writing a program that calculates the first 1000 primes. After brooding for a while this is what I came up with:
a=0
while a<100:
a=a+1
r=2*a+1
f=1
while f(1/2)*int(r):
print r
I would prefer it if you did not tell me the answer but only point out the part of the script that is wrong

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!

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.