赞
踩
x,y = map(int,input().split(' ')) z = 0 if x < 1 and y > 500: print('请输入1-500之间的数值:') else: for i in range(x,y+1): if i%2!=0 and i%3!=0 and i%5!=0 and i%7!=0: z +=i print(z)
算法比价粗糙,记录每日成长