Code
Diff
  • def euler(num):
        return sum(x*(x%3*x%5==0)for x in range(num))
  • 11
    def euler(num):
    
    2
        return sum([x for x in range(num) if not x % 3 or not x % 5])
    
    2+
        return sum(x*(x%3*x%5==0)for x in range(num))