Math & Stats

Prime Number Checker

Check whether a number is prime.

A prime number has exactly two divisors: 1 and itself. This checks divisibility up to the square root of the number to confirm.

Advertisement