• Returns the nth prime number.

    Parameters

    • num: number

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

    Returns number

    Example

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

Generated using TypeDoc