7.8 编程实例4:判断质数和数列求和(1)