Need help with Primes from PSET1: I don't know how to generate the primes from a tuple of odd numbers. Am I doing this right???
Here is my code so far:
#Generate odd numbers up to 8000 and put into tuple
odds = []
for ans in range(1,8000):
if (ans/2)*2 != ans:
odds = odds + [ans,]
#From generated tuple, generate list of primes
number = 1
for prime in odds:
if number == 1001:
break
#Divide prime by all numbers less than prime

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!

Not sure what to do next...

At what point are these exercises supposed to be done? Which lecture do they match up with?

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.