Project Euler #5: Smallest multiple

  • + 1 comment
    s=1
        for p in range(1,n+1):
            if math.lcm(p,s)!=s: s=math.lcm(p,s)
        print(s)