i is a candidate for a prime number. In other words, the code will determine whether i is prime. j is a possible factor of i. The 12 checks whether j divides i evenly (i.e., whether j is a factor of i). If it does then i is not prime so it sets IsPrime to false and breaks out of the loop (lines 14 & 15).