private void Button_Click(object sender, RoutedEventArgs e)
        {
            Rabin rabin = new Rabin();
            rabin.StartTests(TESTS_COUNT);
            primeBox.Text = rabin.PrimeNumber.ToString();

        }
        /// <summary>
        /// Получение сильно простого числа
        /// </summary>
        private void GetStrongPrime()
        {
            Rabin generator = new Rabin();

            bool isPrimeStrong = false;
            do
            {
                generator.StartTests(TEST_COUNT);
                p = generator.PrimeNumber;
                isPrimeStrong = generator.StartTests((generator.PrimeNumber - 1) / 2, TEST_COUNT);

            } while (!isPrimeStrong);

        }
 static void Main(string[] args)
 {
     
     do
     {
         Rabin rabin = new Rabin();
         rabin.StartTests(100); 
         Console.WriteLine(rabin.PrimeNumber);
         Console.ReadKey();
         Console.Clear();
     
     }
     while (true);
    
 }