function lcm_more_than_two_numbers(input_array) { if (toString.call(input_array) !== "[object Array]") return false; var r1 = 0, r2 = 0; var l = input_array.length; for(i=0;i