I am trying to take cube root of a big number in python.
m = math.ceil(x ** (1 / 3))
And it throws the following error. I'm new to python Any idea how I can fix this? This code works well with small numbers.
OverflowError: int too large to convert to float
x: 181585216044493265110479777246620298734422341767351687340163849056661430780245822370036270576390671679383160478373098420103368845901477954418397846307160299618708880188789598804503740782461426628087734922371474590103627994348980310908410238370700959464384104051608095487808582735974143598352840162507220364226700149908540696739595513449394546491358752802464480369408135010751665163873817561907562326413519526842502450873431095146206977010971723964333483444586528175829418205819889122383336398168745171506616857763743219777019746656312
Edit: x is the result that I got from Chinese Remainder Theorem, and I need all integer ceil digits for m. Note: I cannot use any other imports.