Skip to content

Instantly share code, notes, and snippets.

View quicklywilliam's full-sized avatar

William Henderson quicklywilliam

View GitHub Profile
@quicklywilliam
quicklywilliam / factorion.swift
Last active August 25, 2015 23:36
Finds all Base-10 Factorions
#!/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!