def main(): value = [0] while primes_read(sys.stdin, value): primes_print(sys.stdout, primes_eval(value[0]))
def main (): value = [0] while primes_read(sys.stdin, value): primes_print(sys.stdout, primes_eval(value[0]))
def test_read5(self): reader = StringIO.StringIO(' \t1 \t\n') value = [0] result = primes_read(reader, value) self.assert_(result == True) self.assert_(value[0] == 1)
def test_read5 (self): reader = StringIO.StringIO(' \t1 \t\n') value = [0] result = primes_read(reader, value) self.assert_(result == True) self.assert_(value[0] == 1)