Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

lcm and gcd using prime factorization

Language: Layout:
- ] Show input
Compilation time: 0.59 sec, absolute running time: 0.16 sec, cpu time: 0.01 sec, memory peak: 5 Mb, absolute service time: 0,83 sec 
edit mode |  history  | discussion
         Prime factors of 24 are :
           2           2           2           3
         Prime factors of 32 are :
           2           2           2           2           2
          Gcd of 24 and 32 is :     8
          lcm of 24 and 32 is :    96

    
                
λ
.NET NoSQL database for rapid development