2018-10-10 22:03:03 +00:00
---
id: 5900f3a41000cf542c50feb7
2021-02-06 04:42:36 +00:00
title: 'Problem 56: Powerful digit sum'
2018-10-10 22:03:03 +00:00
challengeType: 5
2021-02-06 04:42:36 +00:00
forumTopicId: 302167
2021-01-13 02:31:00 +00:00
dashedName: problem-56-powerful-digit-sum
2018-10-10 22:03:03 +00:00
---
2020-12-16 07:37:30 +00:00
# --description--
2018-10-10 22:03:03 +00:00
2021-02-06 04:42:36 +00:00
A googol (10< sup > 100< / sup > ) is a massive number: one followed by one-hundred zeros; 100< sup > 100< / sup > is almost unimaginably large: one followed by two-hundred zeros. Despite their size, the sum of the digits in each number is only 1.
Considering natural numbers of the form, `ab` , where `a` , `b` < 100, what is the maximum digital sum?
2018-10-10 22:03:03 +00:00
2020-12-16 07:37:30 +00:00
# --hints--
2018-10-10 22:03:03 +00:00
2021-02-06 04:42:36 +00:00
`powerfulDigitSum()` should return a number.
```js
assert(typeof powerfulDigitSum() === 'number');
```
`powerfulDigitSum()` should return 972.
2018-10-10 22:03:03 +00:00
```js
2021-02-06 04:42:36 +00:00
assert.strictEqual(powerfulDigitSum(), 972);
2018-10-10 22:03:03 +00:00
```
2021-01-13 02:31:00 +00:00
# --seed--
## --seed-contents--
```js
function powerfulDigitSum() {
return true;
}
powerfulDigitSum();
```
2020-12-16 07:37:30 +00:00
# --solutions--
2020-08-13 15:24:35 +00:00
2021-01-13 02:31:00 +00:00
```js
// solution required
```