I'm glad you enjoyed it. Thank you @boneidol for mentioning the irreducible numbers; I will take a look at those again. The last time I did some serious algebra was more thant 10 years ago, as you might have noticed :-)