read n test ${n} -eq 1 && echo 0 || seq 1 ${n} | factor | awk 'NF==2{r+=$2}END{print r}'