Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 264 Bytes
"""
Problem 1. Multiples of 3 and 5.
https://projecteuler.net/problem=1
"""
def main():
ismul = lambda x: x % 3 == 0 or x % 5 == 0
lst = [num for num in range(1000) if ismul(num)]
res = sum(lst)
print(res)
if __name__ == '__main__':
main()