used bignum to solve