Ejemplo n.º 1
0
 public void TestForLargeNotPromalityNumbers()
 {
     Assert.IsFalse(MillerRabin.IsSimplyNumber(2114782963));
     Assert.IsFalse(MillerRabin.IsSimplyNumber(1114781963));
 }
Ejemplo n.º 2
0
 public void TestForMediumNotPromalityNumbers()
 {
     Assert.IsFalse(MillerRabin.IsSimplyNumber(221));
     Assert.IsFalse(MillerRabin.IsSimplyNumber(421321));
     Assert.IsFalse(MillerRabin.IsSimplyNumber(781323));
 }
Ejemplo n.º 3
0
 public void TestForSmallNotPromalityNumbers()
 {
     Assert.IsFalse(MillerRabin.IsSimplyNumber(4));
     Assert.IsFalse(MillerRabin.IsSimplyNumber(15));
     Assert.IsFalse(MillerRabin.IsSimplyNumber(21));
 }
Ejemplo n.º 4
0
 public void TestForLargePromalityNumbers()
 {
     Assert.IsTrue(MillerRabin.IsSimplyNumber(1046527));
     Assert.IsTrue(MillerRabin.IsSimplyNumber(1073676287));
 }
Ejemplo n.º 5
0
 public void TestForMediumPromalityNumbers()
 {
     Assert.IsTrue(MillerRabin.IsSimplyNumber(45137));
     Assert.IsTrue(MillerRabin.IsSimplyNumber(46147));
     Assert.IsTrue(MillerRabin.IsSimplyNumber(60373));
 }
Ejemplo n.º 6
0
 public void TestForSmallPromalityNumbers()
 {
     Assert.IsTrue(MillerRabin.IsSimplyNumber(1));
     Assert.IsTrue(MillerRabin.IsSimplyNumber(3));
     Assert.IsTrue(MillerRabin.IsSimplyNumber(5));
 }