예제 #1
0
        private OmgNum _Carmichael(OmgNum phiP, OmgNum phiQ)
        {
            OmgNum pq    = OmgOp.Multiply(phiP, phiQ);
            OmgNum pqGCD = OmgOp.Gcd(phiP, phiQ);

            OmgNum lcm = OmgOp.Div(pq, pqGCD);

            pq.Release();
            pqGCD.Release();

            return(lcm);
        }