armstrong number finding algorithm