summaryrefslogtreecommitdiff
path: root/progs/a123.py
blob: 118c573e902ff6b5b4c3b167d2a0e0dcc1be8a76 (plain)
1
2
def power_base_sum(base, power):
    return sum([int(i) for i in str(pow(base, power))])