きったんの頭

#! /usr/bin/env python3
"""
pe30.py
https://mind.kittttttan.info/py/pe30
"""

# https://mind.kittttttan.info/py/pe0
from pe import pod

def pe30():
    """
    Find the sum of all the numbers that can be written as
    the sum of fifth powers of their digits.
    """
    # print([n for n in range(11, 200000) if pod(n, 5) == n])
    print(sum(n for n in range(11, 200000) if pod(n, 5) == n))

if __name__ == "__main__":
    pe30()