Sum of prime factors with multiplicity (source code)

= Sum of prime factors with multiplicity
{title2=$s(n)=\sum_{j=1}^r e_jp_j$}

For an <integer> $n>1$ with <prime factorization> $n=\prod_{j=1}^r p_j^{e_j}$, this is the sum of its <prime factors> with each repeated $e_j$ times. For example, $s(18)=2+3+3=8$. It differs from the sum of distinct <prime factors>.