Thanks for those suggestions on 'Armstrong numbers' @hindol.adhya. I've incorporated them as best I can.