Ascending primes: Difference between revisions
Content added Content deleted
(→J: simplify) |
|||
Line 1,092: | Line 1,092: | ||
=={{header|J}}== |
=={{header|J}}== |
||
Compare with [[ |
Compare with [[Descending_primes#J|Descending primes]]. |
||
[https://jsoftware.github.io/j-playground/bin/html/#code=_10%20%5D%5C%20%2F%3A~%20(%23~%201%26p%3A |
[https://jsoftware.github.io/j-playground/bin/html/#code=_10%20%5D%5C%20%2F%3A~%20(%23~%201%26p%3A)%2010%26%23.%40I.%20%23%3A%20i.%20513 Live link]. |
||
<syntaxhighlight lang="j"> |
<syntaxhighlight lang="j">_10 ]\ /:~ (#~ 1&p:) 10&#.@I. #: i. 513</syntaxhighlight> |
||
</syntaxhighlight> |
|||
{{out}} |
{{out}} |
||
<pre> |
<pre> |