Flow controls: Loops · 14 / 26 Exercise Medium

Product of prime factors

Objective

Create a Python program that asks the user for an integer (x) and displays the product of its prime factors. Prime factors are prime numbers that exactly divide a number without leaving a remainder.

Input
60
Output
The prime factors of 60 are: 2 2 3 5

Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.

Start exercise