After it finds a prime number, it does not hit the nested for loop on the next go around of the outside ...
stackoverflow.com