It is better to do this:
public static long LCM(long a, long b)
return (a / GCD(a,b)) * b;
To avoid overflow on big numbers.
My name is Mauro Leggieri. I am 30 year-old, married and have a child.
I am a system engineer (UTN university) and am being programming for more than 20 years from the C64 to the PC and some microcontrollers.
Mostly of my time, I program games for Windows.
Soon, my site http://www.mauroleggieri.com.ar