xen-dev-utils
    Preparing search index...

    Function primeRange

    • Obtain a range of primes by zero-based index. Prime 2 has index 0.

      Parameters

      • start: number

        Inclusive start index in the prime sequence.

      • Optionalend: number

        Exclusive end index. end - start elements are returned.

      Returns number[]

      The primes in the requested half-open range.