Function primeFactors

  • Find the prime factors of a number.

    Parameters

    • x: number

      a number

    Returns number[]

    [f₀, f₁, ...] | fᵢ divides x and is prime

Generated using TypeDoc