• Returns the prime factors of a number.

    Parameters

    • num: number

      Number

    Returns number[]

    Example

    // Returns the array [2, 2, 2, 2, 2, 2, 5, 5, 5, 5, 5, 5]
    const factors = Chalkboard.numb.factors(1000000);

Generated using TypeDoc