def main(): test = DynamInt(1) test.printme() b = DynamInt(2) b.printme() print "Adding test to b "+(test+b) print (test-b) print b>test print b<test print b == test print b*test print b/test
def randomprime(self): ''' randomprime generates a random prime by looping and testing each random number it creates ''' print "Initial Prime" prime = DynamInt(len) prime.printme() while self.isPrime(prime)!=True : print "Current Number "+prime.data prime.random(len) return prime