• + 1 comment

    any explainations for iterating up to sqrt(n)? and could you please explain sum += i + n/i; part as well?

    Thank you.