project-euler/001.py

2 lines
68 B
Python
Raw Normal View History

2020-12-08 01:23:24 +00:00
print(sum(filter(lambda c: c % 3 == 0 or c % 5 == 0, range(1000))))