If primes [ i ] is a prime factor , add its digits to pDigitSum .
p = primes [ i ] NEW_LINE n = n / p NEW_LINE while p > 0 : NEW_LINE INDENT pDigitSum += ( p % 10 ) NEW_LINE p = p / 10 NEW_LINE DEDENT i = i + 1 NEW_LINE