diff --git a/src/Python/Problems001-050/Problem016.py b/src/Python/Problems001-050/Problem016.py index 1901c95..034a405 100644 --- a/src/Python/Problems001-050/Problem016.py +++ b/src/Python/Problems001-050/Problem016.py @@ -19,6 +19,7 @@ def compute(): What is the sum of the digits of the number 2^1000? """ + n = 1000 return sum(int(digit) for digit in str(2**n))