spir <denis.spir <at> gmail.com> writes: > > Tu sum it up (aha!): you algorithm is the right and only one No, it's not the only one. It's certainly the most obvious one, but there is also the pure numbers approach pointed out by me and Alan.