+ 5-th problem
+ faster way with lcm