A prime number is a number greater than 1 that is only divisible by 1 and itself. Examples of prime numbers include 2, 3, 5, 7, and 11.
On the other hand, a composite number is a number greater than 1 that has more than two factors. In other words, a composite number can be divided evenly by numbers other than 1 and itself. Examples of composite numbers include 4, 6, 8, 9, and 12.
So, the main difference between a prime and composite number is their divisibility - prime numbers have only two factors (1 and the number itself), while composite numbers have more than two factors.