예제 #1
0
 static public void EnterX()
 {
     do
     {
         PrintLog($"Введите x (x < {p}): ", false);
         x = Convert.ToInt32(Console.ReadLine());
     }while (!(ELGAmal.IsPrimeNumber(x) && (x < p)));
 }
예제 #2
0
 static public void EnterG()
 {
     do
     {
         PrintLog($"Введите g (g < {p}): ", false);
         g = Convert.ToInt32(Console.ReadLine());
     }while (!(ELGAmal.IsPrimeNumber(g) && (g < p)));
 }