Cody

Problem 2492. Factorions: Numbers that equal the sum of the factorials of their digits

From Wikipedia: A factorion is a natural number that equals the sum of the factorials of its decimal digits

For example:

2!=2

1!+4!+5!=145

Write a function that returns true if a number is a factorion and false otherwise.

Assume all numbers are of base 10.

Solution Stats

72.97% Correct | 27.03% Incorrect
Last Solution submitted on Mar 19, 2019

Problem Comments