Project Euler #16: Power digit sum

  • + 0 comments
    #python
    for x in range(int(input())):
        print(sum([int(x) for x in str(2**int(input()))]))