How the calculation works
Test whether an integer greater than one has a factor at or below its square root.
Worked example
Number = 97 gives Prime.
Reading the result
Zero and one are neither prime nor composite. Enter a whole number from zero through one trillion.