checking wether a given number is an armstrong number