Why not with 5? What is the special quality about this number 5? If you consider any other case with this number you will find that in any case, you can just do two things either give 5 children 1 chocolate each or all 5 to one child for equal distribution but for any other case it cannot be distributed equally. Why?
21 = 1 × 21, 3 × 7 as we can see that we have 4 factors here, 1,3,7,21(the distribution can be done in 4 ways). So if I have 21 chocolates I can give 7 children 3 chocolates each or 3 children 7 chocolates each, in either case the distribution is equal. But this is not the case with the number 5 as it has only two factors 1, 5 so the distribution is done in 2 ways only. Therefore, 5 is a prime number and 21 is a composite number.