除2就可以了。 def totalPrime(a):     total = 0     for num in a:         total += num//2     return total