A prime number is a number that has exactly two factors: 1 and the number itself. A composite number is a counting number that has more than two factors. A number is either prime or composite.