still not working. requires big number operations even for the sum of digits