Munchausen Numbers (Python)

By @metehaansever9/16/2018coding

Look how cool is this number and here is the crystal clear code to reach this number in Python.


[**Source**](http://www.blog.republicofmath.com/the-curious-case-of-the-number-3435/)

#Codes

for i in range(5000):
if i == sum(int(x) ** int(x) for x in str(i)):
print(i)

[**Source**](https://github.com/metehaansever/C_homework/blob/master/Munchausen%20number)

You can follow me in Github.

Thanks for upvote :)

2

comments