0
Help with easy code pleasee
I need the prime numbers from 2 to "n" using the code that I already have but I have some errors, can you help me? (look comments in the code) https://code.sololearn.com/c1Yr6xhU25Wk/?ref=app
2 Answers
0
c=1
while c<int(input(" ")) :
c+=1
j=1
while True:
j+=1
if c%j==0:
break
elif j==c-1:
print (c)
simple and good..
check it
0
But I cannot apply this to my code..