Enter a number to check if it is a Leyland number, or specify a start and end range to generate all Leyland numbers within that range.
A Leyland number is a number that satisfies the following specific form: For integers \( x \) and \( y \), where \( x > 1 \) and \( y > 1 \): \( N = x^y + y^x \) If a number can be expressed in this way, it is called a Leyland number.
For example: 17 is a Leyland number, because \( 2^3 + 3^2 = 8 + 9 = 17 \).
Another example: 100 is a Leyland number, because \( 2^6 + 6^2 = 64 + 36 = 100 \).
8, 17, 32, 54, 57, 100, 145, 177, 320, 368, 512, 593, 945, 1124, 1649, 2169, 2530, 4240, 5392, 6250, 7073, 8361, 16580, 18785, 20412, 23401, 32993, 60049, 65792, 69632, 93312, 94932, 131361, 178478, 262468, 268705, 397585, 423393, 524649, 533169