Because std.bigint's member data is a private property, and there is no API setDigit that opens the opposite of getDigit, it can only be shifted by digits one by one. !! Here is a performance bottleneck.
Test whether BigInt n is prime. Step 1: millerRabinPrimeTest Step 2: lucasLehmerTest
Bug BigInt mul() of phobos will be fixed in version 2.087.0 Details: https://github.com/dlang/phobos/pull/6972
Random generate a BigInt by bitLength.
Random generate a BigInt between min and max.