Factorions: Difference between revisions

Content added Content deleted
Line 1,081: Line 1,081:
see "working..." + nl
see "working..." + nl


for n = 3 to 100000
for n = 1 to 100000
Digits = []
Digits = []
sumFact = 0
sumFact = 0
Line 1,107: Line 1,107:
<pre>
<pre>
working...
working...
1! = 1 = 1
2! = 2 = 2
1! + 4! + 5! = 1 + 24 + 120 = 145
1! + 4! + 5! = 1 + 24 + 120 = 145
4! + 0! + 5! + 8! + 5! = 24 + 1 + 120 + 40320 + 120 = 40585
4! + 0! + 5! + 8! + 5! = 24 + 1 + 120 + 40320 + 120 = 40585