Prime reciprocal sum: Difference between revisions
Content added Content deleted
m (→{{header|J}}: reiterate the algorithm as a brief comment) |
m (→{{header|J}}) |
||
Line 140: | Line 140: | ||
Here, <code>+/@:%</code> is the sum of reciprocals, so <code>1%1-+/@:%</code> is the reciprocal of the amount remaining, and <code>4 p:1%1-+/@:%</code> is the smallest prime which is larger than that value. |
Here, <code>+/@:%</code> is the sum of reciprocals, so <code>1%1-+/@:%</code> is the reciprocal of the amount remaining, and <code>4 p:1%1-+/@:%</code> is the smallest prime which is larger than that value. |
||
Tested in J9.4 |
|||
=={{header|Julia}}== |
=={{header|Julia}}== |