PP1 Week 3 Contest 2
Four digit Armstrong numbers
Four digit number is called Armstrong number if the sum of fourth power of its digits equals to the number. For example, 8208 =
84 is an Armstrong number. Print all Armstrong numbers from a to b.
Two integers a and b (1000 ≤ a ≤ b ≤ 9999).
Print in one line all Armstrong numbers from a to b.