Returns the nth prime number.

// The 100th prime number is 523
const prime = Chalkboard.numb.prime(100);
  • Parameters

    • num: number

      The "n" in "nth prime number" (the index of the prime number in the set of all prime numbers)

    Returns number