24 is a perfect number.
27
A perfect number is a number for which the sum of all its factors is equal to twice the number.
For example, 6 is a perfect number since the sum of its factors 1, 2, 3 and 6 is 12 i.e. twice of 6.
The factors of 24 are 1, 2, 3, 4, 6, 8, 12, 24, the sum of the factors is
1+2+3+4+6+8+12+24 =60, so 24 is not a perfect number.