Is 31 a prime or composite number?

31 is a prime number because the only numbers (factors) that can be multiplied to make 31 is $1$, and $31$. If it happened to have more then two numbers however (like if it had 1, 31, 2, and 7) then it would be a composite number.