There is a strange problem when using the NumberSequenceIterator in combination with an AverageAccumulator.
It seems like the individual accumulators are reinitialized and overwrite parts of intermediate solutions.
The following scala snippit exemplifies the problem.
Instead of printing the correct average, the result should be 50.5 but is something completely different, like 8.08, dependent on the number of cores used.
If the parallelism is set to 1 the result is correct, which indicates a likely threading problem.
The problem occurs using the java and scala API.