合数有5个,是4,6,8,9,10
质数有4个,是2,3,5,7