Cody

Problem 20. Summing digits

Created by Cody Team in Cody Challenge

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.52% Correct | 49.48% Incorrect
Last solution submitted on May 24, 2019

Problem Comments

Solution Comments

Recent Solvers4512

Suggested Problems

More from this Author95

Tags