Returns the prime number that succeeds the inputted number.
// Returns 541const prime = Chalkboard.numb.nextPrime(523); Copy
// Returns 541const prime = Chalkboard.numb.nextPrime(523);
Number
Returns the prime number that succeeds the inputted number.
Example