the whole premise is silly though. why would anyone use plain java to compute this when databases were built for this or at least are the most finely tuned for it
It's only silly if you miss the point of the challenge :) Which is to learn something new and have fun along the way.
But is it realistic at all?
Also will I get pilloried if I just make it a big StreamOf thing? ;-)
The Java runtime is an external dependency, isn’t it?