+ 1
Find curious Number
145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145. Find the sum of all numbers which are equal to the sum of the factorial of their digits. Note: as 1! = 1 and 2! = 2 are not sums they are not included.
3 odpowiedzi
+ 8
There you go :)
https://code.sololearn.com/cF0fGBBCQ0wH/?ref=app
+ 8
In Java ^_^
https://code.sololearn.com/chrXo1R7zck9/?ref=app
+ 4
Here's c++ code:
https://code.sololearn.com/ceFxXO9725uv/?ref=app