Factorions: Difference between revisions

Content added Content deleted
(R)
Line 386: Line 386:


=={{header|F_Sharp|F#}}==
=={{header|F_Sharp|F#}}==
<lang fsharp
<lang fsharp>
// Factorians. Nigel Galloway: October 22nd., 2021
// Factorians. Nigel Galloway: October 22nd., 2021
let N=[|let mutable n=1 in yield n; for g in 1..11 do n<-n*g; yield n|]
let N=[|let mutable n=1 in yield n; for g in 1..11 do n<-n*g; yield n|]
Line 398: Line 398:
In base 12 Factorians are: 1 2
In base 12 Factorians are: 1 2
</pre>
</pre>

=={{header|Factor}}==
=={{header|Factor}}==
<lang factor>USING: formatting io kernel math math.parser math.ranges memoize
<lang factor>USING: formatting io kernel math math.parser math.ranges memoize