Denote by $f(n)$ the maximal number of distinct divisors of $k$ integer numbers $1\leq a_1<a_2<\ldots<a_k\leq n$, where $k$ is not fixed and $a_1+\ldots+a_k\leq n$. I'm interested in the asymptotics of $f(n)$.
For example, $f(4)=3$ since 4 has 3 divisors, $f(10)=5$ since 10=6+4 and 1,2,3,4,6 divide 4 or 6.
Notice that if we take numbers $1,2,3,\ldots,t$ such that $1+\ldots+t=t(t+1)/2\leq n$ (so $t\sim\sqrt{2n}$), then we have exactly $t$ divisors, so $f(n)>\sqrt{n}$.
Question: is it possible to obtain a better asymptotics?