So I have a question about the prime question in problem set 1. Im trying to approach the question as a list problem. I already learned to test for primes in my code but Im having difficult asking for the 1000th term since pyscritpter keeps crashing, I think there is something wrong with my while loop...
def search_primes(n):
#I start by having an empty list
terms=[]
#Then we assigned i the value of 0 because we want to start counting.
i = 0
#the loop would stop as soon as i is equal to n
while i<=n:
# My condition is that in order to append to the list the num

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.