I need to use this to make a program to find the prime factorization of a number, please help me get started.
input a value to factor
while input value > 1
let leftToFactor = input value
let factor = 2
while factor <= leftToFactor
while factor divides leftToFactor
(i.e. remainder = 0)
output factor
divide leftToFactor by factor
increment factor
input next value to factor