Question: help asap.Proc LCM 2 integers

hey can someone plzz help me asap. I need to write a procedure to determine the lcm and gcd of 2 integers. But only 1 will do bcz they are similar. I have already written 2 procedures, one to determine the prime divisors returning the set which contains them, and the other determining the multiplicity of each divisor. also, what if each integer has the same prime divisors with different multiplicities how do i fix this problem?
Please Wait...