Prime numbers p for which the sum of primes less than or equal to p is prime: Difference between revisions

→‎J: simplify
(added RPL)
(→‎J: simplify)
Line 299:
 
=={{header|J}}==
<syntaxhighlight lang="j">(+#~ 1: p: +/\)@(i.&.(p:^:_1)) 1000</syntaxhighlight>
{{out}}
<pre>2 3 7 13 37 43 281 311 503 541 557 593 619 673 683 733 743 839 881 929 953</pre>
559

edits