Sort primes from list to a list: Difference between revisions
m
J
(→{{header|Python}}: Added a functional variant and distinguishing labels.) |
m (J) |
||
Line 47:
2 7 13 43 103
</pre>
=={{header|J}}==
This is a filter (on primality) and a sort (though we could first sort then filter if we preferred):
<lang J> /:~ (#~ 1&p:)2,43,81,122,63,13,7,95,103
2 7 13 43 103</lang>
=={{header|Julia}}==
|