In the textbook Schildt met the program, wrote a simple number or not, but I can not understand how isPrime works here.
int num; boolean isPrime; num = 9; if(num < 2) isPrime = false; else isPrime = true; for(int i=2; i <= num/i;i++) { if((num % i) == 0) { isPrime = false; break; } } if (isPrime) System.out.println("Простое"); else System.out.println("He простое"); Help to understand, please.