예제 #1
0
 def test_Fermat5(self):
     expected = 4294967297
     a = 5
     self.assertEquals(expected, Modular.fermat(a))
예제 #2
0
 def test_Fermat7(self):
     expected = 340282366920938463463374607431768211457
     a = 7
     self.assertEquals(expected, Modular.fermat(a))
예제 #3
0
 def test_Fermat0(self):
     expected = 3
     a = 0
     self.assertEquals(expected, Modular.fermat(a))