($,my$l,my$h,my@c)=+<<$*IN.words;say [+] @c.combinations.map:{([-] ($l-1,$h) >>div>>[lcm] $_)*$_*(-1)**$_}