Ejemplo n.º 1
0
        static BigInteger CommonRandomBig()
        {
            BigInteger digit = RandomBig();

            if (digit.Common())
            {
                return(digit);
            }

            foreach (var d in new CommonDigitsEnum(digit))
            {
                if (d > digit)
                {
                    return(d);
                }
            }
            return(digit);
        }