project-euler/001.py

2 lines
68 B
Python

print(sum(filter(lambda c: c % 3 == 0 or c % 5 == 0, range(1000))))