#K66527. Sum of Distinct Prime Factors
Sum of Distinct Prime Factors
Sum of Distinct Prime Factors
Given an integer , compute the sum of its distinct prime factors. If a prime factor appears more than once in the prime factorization of , it should be included only once. Since the computed sum might be very large, output the result modulo .
For example, if , its prime factorization is , so the distinct prime factors are and , and the answer is .
inputFormat
The input consists of a single integer () provided via standard input.
outputFormat
Output a single integer representing the sum of the distinct prime factors of , modulo , to standard output.## sample
28
9