Theory
A prime number is a whole number greater than 1 with exactly two different positive factors: 1 and itself. For example, 7 has only 1 and 7 as factors, so 7 is prime.
The number 1 is not prime: it has only one positive factor. The number 2 is prime and is the only even prime. Every other even number has at least the factors 1, 2 and itself, so it is not prime.
A whole number greater than 1 that is not prime is called composite. For example, 9 has factors 1, 3 and 9, so it is composite. Neither 0 nor 1 is prime or composite.
To test a small number, check whether any whole number other than 1 and itself divides it exactly. For 29, it is enough to test 2, 3, 4 and 5: a factor pair with two numbers bigger than 5 would make a product bigger than 29. None divides 29 exactly, so 29 is prime.
Learn the primes up to 30: 2, 3, 5, 7, 11, 13, 17, 19, 23 and 29. Do not decide that a number is prime just because it is odd: 21 is odd but 3 × 7 = 21.