<jupyter_start><jupyter_text>Powerful digit sum A googol (10100) is a massive number: one followed by one-hundred zeros; 100100 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  ---  Idea Naive solution, as instructed. ---<jupyter_code>import sys, os; sys.path.append(os.path.abspath('..'))
from timer import timethis
def get_digit_sum(n):
    s = 0
    while n:
        s += n % 10
        n //= 10
    return s
get_digit_sum(123)
@timethis
def solve():
    m = 0
    for a in range(100):
        for b in range(100):
            n = pow(a, b)
            m = max(m, get_digit_sum(n))
    return m
solve()<jupyter_output>Run for 0.312 seconds
{'fraction_non_alphanumeric': 0.10230179028132992, 'fraction_numerical': 0.03964194373401535, 'mean_word_length': 2.876237623762376, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '598819', 'license': 'MIT', 'n_tokens_mistral': 297, 'n_tokens_neox': 260, 'n_words': 100, 'path': '51-75/p56.ipynb', 'repo_name': 'Sorosliu1029/Euler', 'size': '782'}