project_euler.problem_016.sol1 ============================== .. py:module:: project_euler.problem_016.sol1 .. autoapi-nested-parse:: Problem 16: https://projecteuler.net/problem=16 2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26. What is the sum of the digits of the number 2^1000? Attributes ---------- .. autoapisummary:: project_euler.problem_016.sol1.power Functions --------- .. autoapisummary:: project_euler.problem_016.sol1.solution Module Contents --------------- .. py:function:: solution(power: int = 1000) -> int Returns the sum of the digits of the number 2^power. >>> solution(1000) 1366 >>> solution(50) 76 >>> solution(20) 31 >>> solution(15) 26 .. py:data:: power