For each positive integer $k$, let $a_k$ be the greatest integer not exceeding $\sqrt{k}$ and let $b_k$ be the greatest integer not exceeding $\sqrt[3]{k}$. Calculate \(\sum_{k=1}^{2003} (a_k-b_k)\).

Let's think step by step and output the final answer within \boxed{}.
user