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

16th Oct 2017, 5:31 PM
Oscar
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
16th Oct 2017, 6:15 PM
sayan chandra
sayan chandra - avatar
0
But I cannot apply this to my code..
16th Oct 2017, 6:20 PM
Oscar