n.n starting from the smallest prime, 2.
c. For each prime factor i, divide n by i as long as i is a divisor of n, and add i to the sum for each division.
d. If n is greater than 1 after this process, it means n is a prime number itself, so add it to the sum.
e. If the sum is equal to the current value of n, break the loop as we have reached a stable state.
f. Otherwise, set n to the sum and repeat the process.