Cody

Problem 20. Summing digits

Given n, find the sum of the digits that make up 2^n.

Example:

 Input  n = 7
 Output b = 11

since 2^7 = 128, and 1 + 2 + 8 = 11..

Solution Stats

50.32% Correct | 49.68% Incorrect
Last Solution submitted on May 29, 2020

Problem Comments

Solution Comments

Problem Recent Solvers5967

Suggested Problems

More from this Author95

Problem Tags