Smallest Prime Factor

Let $\operatorname{smpf}(n)$ be the smallest prime factor of $n$. $\operatorname{smpf}(91)=7$ because $91=7\times 13$ and $\operatorname{smpf}(45)=3$ because $45=3\times 3\times 5$. Let $S(n)$ be the sum of $\operatorname{smpf}(i)$ for...