![]() |
|||
Comments and Discussions
|
About Article
Alternative to Fast Greatest Common Divisor (GCD) Algorithm
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.
Top News
The Next Version of Android - Some of What's Coming Get the Insider News free each morning.Related Videos
Related Articles
|
||||||||||||||||||||||||||||||||||||