Uber | OA - CodeSignal | Sum of prime factors

Given a number ( greater than 1 and less than 1e12 ) return the sum of it's prime factors

Example inputs :

9 = 3 * 3. So, answer is (3+3) = 6
6 = 3 * 2. So, answer is (3+2) = 5

Execution time limit : 1 sec

Comments (1)