Sort primes from list to a list: Difference between revisions

Realize in F#
m (→‎{{header|Raku}}: don't add words that don't exist)
(Realize in F#)
Line 37:
</pre>
 
=={{header|F_Sharp|F#}}==
This task uses [http://www.rosettacode.org/wiki/Extensible_prime_generator#The_functions Extensible Prime Generator (F#)]
<lang fsharp>
// Primes from a list. Nigel Galloway: Januuary 23rd., 2022
[2;43;81;122;63;13;7;95;103]|>List.filter isPrime|>List.sort|>List.iter(printf "%d "); printfn ""
</lang>
{{out}}
<pre>
2 7 13 43 103
</pre>
=={{header|Perl}}==
<lang perl>#!/usr/bin/perl
2,172

edits