C template......................................
The len ( ) function will run with each iteration, printing the element number each time.
Goin to make great profit
num = int(input("Enter a number: "))
i = 2
while num > 1:
if num % i == 0:
num = num / i
print(i, end=" ")
i = 2
i += 1
I hope this helps!