Project Euler #1: Multiples of 3 and 5

  • + 1 comment

    Python, this is my sarcasticly built one line... But I keep getting a timeout on two of the tests. Tried basic for loop, itterating a value, sum a list, writing it all out line by line... [print(sum(map(lambda x: x if x % 3 ==0 or x % 5 == 0 else 0, range(3, int(input()))))) for _ in range(int(input()))]