Number formed after K times repeated addition of smallest divisor of N
Given two integers N and K, the task is to generate the final outcome of performing K operations which involves adding the smallest divisor, other than 1, of the current value of N to it at every step.Example: Input: N = 9, K = 4 Output: 18 Explanation: Divisors of 9 are {1, 3, 9} 1st Operation: N =