diff --git a/coco.py b/coco.py new file mode 100755 index 0000000000000000000000000000000000000000..52f8389e4d6b7e92fe312595049ef40883749bdf --- /dev/null +++ b/coco.py @@ -0,0 +1,29 @@ +def splitthem(quant): + if quant[0] % 5 != 1: + return False + else: + quant[0] -= (1 + quant[0]//5) + return True + + +def testnum(num): + for pers in range(5): + if (False == splitthem(num)): + return False + if num[0] % 5 == 0: + return True + + +def main(): + num = [0] + for n in range(1, 10000): + num[0] = n + if testnum(num): + print "The Number Was %d" % (n) + return + + print "Not found in 10000 tries" + + +if __name__=="__main__": + main()