`

Project Euler 第34题

 
阅读更多
阶乘的和
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.

145是一个特殊的数字,等于自身每位数的阶乘的和。求出所有类似145的数的和。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics