Project Euler #48: Self powers

  • + 1 comment

    Python 3 100% 1-liner

    print(int(str(sum(pow(i, i, 10**10) for i in range(1, int(input())+1)))[-10:]))