MCPcopy Create free account
hub / github.com/ActiveState/code / main

Function main

recipes/Python/577475_Power_Of_Two/recipe-577475.py:66–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64 print(text)
65
66def main():
67 n = 4000
68 start = Timer.value()
69 digits = PowerOfTwo.calculate(n)
70
71 print("2^%d:" % (n))
72 print("...%d digits calculated" % (len(digits)))
73 print("...took %f seconds" % (Timer.delta(start)))
74
75 PowerOfTwo.dump(digits)
76
77if __name__ == "__main__":
78 main()

Callers 1

recipe-577475.pyFile · 0.70

Calls 5

printFunction · 0.85
valueMethod · 0.45
calculateMethod · 0.45
deltaMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected