Method for testing whether a number is an Armstrong number.