int.gcdlcm(int2) â array
Instance Public methods
Returns an array; [int.gcd(int2), int.lcm(int2)].
1 2 3 | 2 .gcdlcm( 2 ) #=> [2, 2] 3 .gcdlcm(- 7 ) #=> [1, 21] (( 1 << 31 )- 1 ).gcdlcm(( 1 << 61 )- 1 ) #=> [1, 4951760154835678088235319297] |
Please login to continue.