Exemple #1
0
 public bool Is_prime_Test_Partly_Calculated(int num, int firstCall)
 {
     var calculator = new Calculator();
     calculator.IsPrime(firstCall);
     return calculator.IsPrime(num);
 }
Exemple #2
0
 public bool Is_prime_Test(int num)
 {
     var calculator = new Calculator();
     return calculator.IsPrime(num);
 }
Exemple #3
0
 public bool Is_prime_Test_Already_Calculated(int num)
 {
     var calculator = new Calculator();
     calculator.IsPrime(num + 1);
     return calculator.IsPrime(num);
 }
Exemple #4
0
 public ProblemSolver()
 {
     calculator_ = new
         Calculator();
 }