Could just as well be a problem of your library. Anyway, I think this whole thread proves that unsigned long long doesn't solve your problem. You might want to look into the various available BIGNUM / BIGINT libraries.
Every good solution is obvious once you've found it.