...

/

Example 47: Prime Factors of a Number

Example 47: Prime Factors of a Number

Learn how to calculate the prime factors of a given number using recursion.

We'll cover the following...

Problem

Write a recursive function that takes a positive number as an input and calculates its prime factors.

Example

Input Output
...