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