I've been learning (slowly) the Nim programming language via Rosetta Code.
I've run into a problem with the "bignum" package.
"~/.nimble/pkgs/gmp-0.2.5/gmp/pure.nim(19, 47) Error: invalid indentation".
I think I've installed, uninstalled this package several times.
I'm on MacOS 26.5 (Tahoe) with arm64.
Thanks, Ret_Bld_Engr
The error message shows an error with gmp and not bignum.
What is your version of nimble?
Try reinstalling the gmp Nim's package using Nimble.
Why is the problem in a quotation markdown format?
My experience with bignum is that it's only good for big numbers that have just a few thousand digits. If you want to work with really huge numbers, bignum is slow.
For instance, the largest Mersenne Prime found so far is 2^136_279_841-1 (see https://www.mersenne.org/). bignum takes too long to calculate this number. My question: what Nim package do you suggest for such huge numbers? I want to get this number as a string. (Interestingly, Python's big integer implementation is really good. In Python, I can get this number in about 30 seconds on my desktop machine).