I really don't like how this behaves for populating the array initially, and how it behaves for small inputs...
$ seq 15 | dimsum -n 10
14
12
3
4
5
6
7
8
9
10