Give me a summary of how to determine if a number is prime or not.

A prime number is a number greater than one that cannot be the product of two smaller numbers besides 1 and itself (e.g., the number 5 is prime because the only product of two smaller numbers is 5 and 1).