
total = 0
for i in range(1,11):
    if i == 3 or i == 5 or i == 7:
        continue
    total += i

print(f'The sum of 1..10, excluding 3,5,and 7 is {total}.')


total = 0

for i in range(1,31):
    if i % 3 == 0:
        continue
    total += i

print(f'The sum of 1..30, excluding numbers divisible by 3 is {total}.')

