The number 40 can be evenly divided by 1 2 4 5 8 10 20 and 40, with no remainder.
Since 40 cannot be divided by just 1 and 40, it is a composite number.