Solve SRM 162, Div 2, Problem LCMRange