from math import gcd def lcm(x,y): return x//gcd(x,y)*y def mobius_to_low(res,n): for i in range(n): i = 1<