Factors and Multiples
Prime Check
Decide whether 17 is prime by testing prime divisors up to the square root of 17. If none divide 17 evenly, the number is prime.
primality-test
A prime number has exactly two factors: 1 and itself. To check, try dividing by each prime up to the square root. For 17, test 2 and 3. If any trial succeeds (remainder 0), the number is composite. Stop as soon as one works.