Look how cool is this number and here is the crystal clear code to reach this number in Python.
#Codes
for i in range(5000):
if i == sum(int(x) ** int(x) for x in str(i)):
print(i)
#Codes
for i in range(5000):
if i == sum(int(x) ** int(x) for x in str(i)):
print(i)