This repository has been archived on 2024-01-26. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
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])