Factorions: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
m (→‎{{header|Wren}}: Changed to Wren S/H)
 
(One intermediate revision by one other user not shown)
Line 518:
 
{{FormulaeEntry|page=https://formulae.org/?script=examples/Factorions}}
 
'''Solution'''
 
Definitions:
 
[[File:Fōrmulæ - Factorions 01.png]]
 
[[File:Fōrmulæ - Factorions 02.png]]
 
The following calculates factorion lists from bases 9 to 12, with a limit of 1,499,999
 
[[File:Fōrmulæ - Factorions 03.png]]
 
[[File:Fōrmulæ - Factorions 04.png]]
 
=={{header|FreeBASIC}}==
Line 1,954 ⟶ 1,968:
=={{header|Wren}}==
{{trans|C}}
<syntaxhighlight lang="ecmascriptwren">// cache factorials from 0 to 11
var fact = List.filled(12, 0)
fact[0] = 1
9,490

edits