Coding challenge factorial property | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Coding challenge factorial property

145 is a special number in factorial land because it is equal to the sum of the individual factorial numbers. i.e. 1! + 4! + 5! == 1 + 24 + 120 = 145 What is the next number with these properties ? https://code.sololearn.com/cF31RpVQayzs/?ref=app

11th Sep 2017, 2:07 PM
John Coster
John Coster - avatar
3 Answers
+ 1
It's 40585. Here you go, checks for valid input. Also counts 1! and 2! since their factorials equal their regular integers. https://code.sololearn.com/c0YADo52URrq/?ref=app
11th Sep 2017, 6:15 PM
Vari93
Vari93 - avatar
0
Thanks for your Contribution in python !
12th Sep 2017, 6:03 AM
John Coster
John Coster - avatar
0
Always!
12th Sep 2017, 6:21 AM
Vari93
Vari93 - avatar