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