DEV Community

Discussion on: Project Euler #1 - Multiples of 3 and 5

Collapse
 
_bigblind profile image
Frederik 👨‍💻➡️🌐 Creemers
result = sum(x for x in range(1001) if x % 3 == 0 or x % 5 == 0)