Ad
Code
Diff
  • def euler(num):
        sum=0
        for x in range(num):
            if x%3==0 or x%5==0:
                sum += x
        return sum   
    • def mul():
    • def euler(num):
    • sum=0
    • for i in range(1001):
    • if i>0:
    • if(i%3==0 or i%5==0):
    • sum=sum+1
    • for x in range(num):
    • if x%3==0 or x%5==0:
    • sum += x
    • return sum