The number 502 can be evenly divided by 1 2 251 and 502, with no remainder.
Since 502 cannot be divided by just 1 and 502, it is a composite number.