LCM

Return the Least Common Multiple of an array of integers

import sys, numpy def g(a,b): if (a == 0): return b    return g(b%a,a) def l(b,i): if (i == len(b)-1): return b[i] a = b[i] b = l(b,i+1) return int(a*b/g(a,b)) a = sys.argv[1:] b = numpy.array(a,dtype=int) print (l(b,0))
 * 1) !/usr/bin/python3