Project Euler #1: Multiples of 3 and 5

  • + 1 comment

    import sys

    def su(x,n): b=(n-1)//x c=b*((b+1)*x)/2 return int(c)

    t = int(input().strip()) for a0 in range(t): n = int(input().strip()) if (n in range(1,1000000001) and t in range(1,100001)): s=su(3,n)+su(5,n)-su(15,n) print(s)

    why is this not working