@tempots/std
biNextPrime() function
Finds the next prime number greater than the given number.
Signature:
biNextPrime: (x: bigint) => bigint
Parameters
Parameter |
Type |
Description |
---|---|---|
x |
bigint |
The starting number. |
Returns: bigint
The next prime number greater than x
.