Function primeFactors

  • Find the prime factors of a number. 📘

    Returns

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

    Parameters

    • x: number

      a number

    Returns number[]

Generated using TypeDoc