✔ 最佳答案
prime numbers for integers that lie between 1 to 10 (excluding 10 itself) are
2, 3, 5, 7
thus, the sum of all the prime numbers
= 2 + 3 + 5 + 7
= 17
composite numbers for integers that lie between 1 to 10 (excluding 10 itself) are
4, 6, 8, 9
Thus, the sum of all the composite numbers
= 4 + 6 + 8 + 9
= 27
therefore, the difference of the sum of all composite numbers minus the sum of all prime numbers
= 27 - 17
= 10 (Ans.)
Ans. The difference is 10.