Ask coding questions

← Back to all posts
Guys, can you please help me correct this code?(this is the "wrong" print prime numbers program)
AndreiM294 (0)

2 3 4 5 6 7 9 11 13 17 19 23 25 29 31 37 41 43 47 49 53 59 61 67 71 73 79 83 89 97:

wrong prime numbers from 1 to 100.

Comments
hotnewtop
AndreiM294 (0)

dont pay attention to the unit tests(sorry i am saying this again; i accidentally deleted the comment)

sylashur (55)

Pretty sure you have to test numbers all the way up to half of the number being evaluated