A composite number is a number greater than 1 that has more than two factors.It has only two factors, which are, 1 and 5. For example, 5 can be factorized in only one way, that is, 1 × 5 (OR) 5 × 1. A prime number is a number greater than 1 that has exactly two factors, while a composite number has more than two factors.