Wow, you are both right (extra kudos for the almost simultaneous answer ;) )!
Just changing the type from int to int32 in the Nim snippet equals out the performance. I knew that Nim could go faster. Definitely something to keep in mind! Many thanks for the fast answers. Kind regards, Axel
