To check if a number is prime, follow these easy steps.
First, start by dividing the number by 2. If the number is divisible by 2, then it is not prime. If the number is not divisible by 2, continue to the next step. Next, divide the number by odd numbers starting from 3 up to the square root of the number. If at any point the number is divisible evenly by any of these odd numbers, then it is not prime. However, if after going through all the odd numbers the number is still not divisible, then it is prime.
This method works because any number can be expressed as a product of prime numbers, and by checking divisibility up to the square root of the number, we cover all possible factors.