MATL, 12 bytes
q:Q"@Z\l_)vs
Try it at MATL OnlineMATL Online
Explanation
% Implicitly grab input (N)
q % Subtract one
: % Create an array [1...(N-1)]
Q % Add one to create [2...N]
" % For each element
@Z\ % Compute the divisors of this element (including itself)
l_) % Grab the next to last element (the largest that isn't itself)
v % Vertically concatenate the entire stack so far
s % Sum the result