This repository has been archived on 2024-01-26. You can view files and clone it, but cannot push or open issues or pull requests.
project-euler/1/euler1.py
2017-06-08 21:45:05 +02:00

1 line
60 B
Python

sum([x for x in range(1,1000) if x % 5 == 0 or x % 3 == 0])