Login
Discover
Waves
Decks
Plus
Login
Signup
Munchausen Numbers (Python)
metehaansever
(32)
Published in
#coding
Words
0
Reading
0 min
Listen
Play
2018-09-16 00:32
Look how cool is this number and here is the crystal clear code to reach this number in Python.
Source
#Codes
for i in range(5000):
if i == sum(int(x) ** int(x) for x in str(i)):
print(i)
Source
You can follow me in Github.
Thanks for upvote :)
Show 1 comments
Munchausen Numbers (Python)