Check whether a number is prime.
This checks divisibility up to the square root of the number — result shows 1 for prime, 0 for not prime.
a prime number has no divisors other than 1 and itself