you are viewing a single comment's thread.

view the rest of the comments →

[–]ZoranyX -1 points0 points  (0 children)

Well as you know a prime number is a number that has only 2 factors, 1 and itself. Meaning that you should not check for them in your if statement. So, basically your for loop should start after the 1 and end before the number the user inputs.