solved a problem in seq-gcd-lcm that caused a runtime panic due to integer division by 0