Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
heheheha solution in Clear category for Armstrong Number Checking by viktor.chyrkin
def is_armstrong(num: int) -> bool:
c = 0
num = str(num)
for i in num:
c += int(i) ** len(num)
return c == int(num)
Nov. 14, 2023
Comments: