#偶数和for i in range(1,101): if i%2==0: sums1+=iprint(sums1)#奇数和for i in range(1,101): if i%2!=0: sums2+=iprint(sums2)#质数和i=2for i in range(2,100): j=2 for j in range(2,i): if i %j ==0: break else: sums3+=iprint(sums3)