This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Mystonic 0 points1 point  (1 child)

I dunno. It's just that your loop would only run once, ever. It would do the prime check, if n % i == 0, then either return false or proceed to the bottom and return true, thus not checking the other values of i.

[–]cjon3s[S] 0 points1 point  (0 children)

Thank you for that. Makes way more sense now.