This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env swift | |
// Inspired by @AlgebraFact, https://twitter.com/AlgebraFact/status/636205354544726017 | |
import Foundation | |
// | |
// A factorion is a number that is equal to the sum of the factorials of its digits. | |
// There are only 4 factorions. | |
// 1 = 1! |
NewerOlder