private BigInteger GeneratePrimeNumber()
        {
            BigInteger number;

            do
            {
                number = random.Next(100, 500);
            } while (!GCD.IsSimple(number));
            return(number);
        }
Exemple #2
0
        private BigInteger GeneratePrimeNumber()
        {
            BigInteger number = random.Next(4, 1000);

            while (!GCD.IsSimple(number))
            {
                number = random.Next(4, 1000);
            }
            return(number);
        }