Converts this BigInt to a byte.
If the BigInt is too big to fit in a byte, only the low-order 8 bits are returned.
Note that this conversion can lose information about the overall magnitude of the
BigInt value as well as return a result with the opposite sign.

Converts this BigInt to a char.
If the BigInt is too big to fit in a char, only the low-order 16 bits are returned.
Note that this conversion can lose information about the overall magnitude of the
BigInt value and that it always returns a positive result.

Converts this BigInt to an int.
If the BigInt is too big to fit in a char, only the low-order 32 bits
are returned. Note that this conversion can lose information about the
overall magnitude of the BigInt value as well as return a result with
the opposite sign.

Converts this BigInt to a long.
If the BigInt is too big to fit in a char, only the low-order 64 bits
are returned. Note that this conversion can lose information about the
overall magnitude of the BigInt value as well as return a result with
the opposite sign.

Converts this BigInt to a short.
If the BigInt is too big to fit in a byte, only the low-order 16 bits are returned.
Note that this conversion can lose information about the overall magnitude of the
BigInt value as well as return a result with the opposite sign.

Returns a byte array containing the two's-complement representation of
this BigInt. The byte array will be in big-endian byte-order: the most
significant byte is in the zeroth element. The array will contain the
minimum number of bytes required to represent this BigInt, including at
least one sign bit.

Returns true if this BigInt is probably prime, false if it's definitely composite.

Parameters

certainty - a measure of the uncertainty that the caller is willing to tolerate: if the call returns true the probability that this BigInt is prime
exceeds (1 - 1/2 ^ certainty).
The execution time of this method is proportional to the value of
this parameter.

Converts this BigInt to a byte.
If the BigInt is too big to fit in a byte, only the low-order 8 bits are returned.
Note that this conversion can lose information about the overall magnitude of the
BigInt value as well as return a result with the opposite sign.

Converts this BigInt to a short.
If the BigInt is too big to fit in a byte, only the low-order 16 bits are returned.
Note that this conversion can lose information about the overall magnitude of the
BigInt value as well as return a result with the opposite sign.

Converts this BigInt to a char.
If the BigInt is too big to fit in a char, only the low-order 16 bits are returned.
Note that this conversion can lose information about the overall magnitude of the
BigInt value and that it always returns a positive result.

Converts this BigInt to an int.
If the BigInt is too big to fit in a char, only the low-order 32 bits
are returned. Note that this conversion can lose information about the
overall magnitude of the BigInt value as well as return a result with
the opposite sign.

Converts this BigInt to a long.
If the BigInt is too big to fit in a char, only the low-order 64 bits
are returned. Note that this conversion can lose information about the
overall magnitude of the BigInt value as well as return a result with
the opposite sign.

Returns a byte array containing the two's-complement representation of
this BigInt. The byte array will be in big-endian byte-order: the most
significant byte is in the zeroth element. The array will contain the
minimum number of bytes required to represent this BigInt, including at
least one sign bit.