• Returns the largest prime gap between the lower and upper bounds.

    Parameters

    • inf: number

      Lower bound

    • sup: number

      Upper bound

    Returns number

    Example

    // Returns 8, the largest prime gap between 1 and 100
    const gap = Chalkboard.numb.primeGap(1, 100);

Generated using TypeDoc