Our colloquial algorithm is:
Given $n$:
The table PRIMES has entries PRIMES0 = 2, PRIMES1 = 3, PRIMES2 = 5, PRIMES3 = 7, etc.
Our algorithm is:
1. Create a cell labelled "k" and give that cell the value $0$.
2. Create a cell labelled "n" and give that cell the value $n$.
3. Create a cell labelled "m" and give that cell the value $0$.
4. If "n" divided by the value of PRIMES"k" has a remainder of zero,
Otherwise, "n" is not divisible by PRIMES"k" and thus add 1 to "k".
5. If PRIMES"k" still refers to a prime number in the table PRIMES, return to Step 4.
Otherwise, we are finished.
There are "m" factors stored in entries FACTORS0, ..., FACTORS"m" - 1.