Returns an array of prime numbers between the lower and upper bounds.

// Returns the array [2, 3, 5, ... , 983, 991, 997]
const arr = Chalkboard.numb.primeArr(0, 1000);
  • Parameters

    • inf: number

      Lower bound

    • sup: number

      Upper bound

    Returns number[]