Project Euler 944 Sum of Elevisors

Official link: https://projecteuler.net/problem=944

Note: I had to use pypy to reduce the run time from ~170s to ~10s