• + 1 comment

    Considewring the boundaries you can solve the task with simple brudeforce solution. Guys are just having fun here with GCD and LCM.