You are viewing a single comment's thread. Return to all comments →
s=1 for p in range(1,n+1): if math.lcm(p,s)!=s: s=math.lcm(p,s) print(s)
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #5: Smallest multiple
You are viewing a single comment's thread. Return to all comments →