Why is two a composite number?

Two is not a composite number. Its only factors are 1 and 2. By definition, a prime number is a number that has only two factors: 1 and itself. 2 is a prime number.