/** What is the sum of the digits of the number 2^1000 ? */ #include "0.hpp" #include "lib/lint.cpp" uint sum(string a) { uint suma = 0; for(uint i = 0; i < a.size(); i++) suma += (a[i] - '0'); return suma; } int main() { lint a("2"); lint b("1000"); lint c = a ^ b; cout << sum(c.getd()) << endl; return 0; }