Not sure if I should\'ve posted this on math.stackexchange instead, but it includes more programming so I posted it here.
The question seems really simple, but I\'ve
I know it was 7 years ago but I wanna share my solution to this problem.
x= set() for i in range(1,1001): if (i % 3) == 0: x.add(i) for j in range(1,1001): if (j % 5) == 0: x.add(j) print(sum(x))