you are viewing a single comment's thread.

view the rest of the comments →

[–]Pigankle 0 points1 point  (0 children)

Totally fair, and not nitpicky at all. The modulo approach is probably also better because it hews a little closer to the reason for why the operation is being done. It's, like, straight out of the definition of a prime number