Prime reciprocal sum: Difference between revisions
m
→{{header|J}}
m (→{{header|J}}: reiterate the algorithm as a brief comment) |
m (→{{header|J}}) |
||
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.
Tested in J9.4
=={{header|Julia}}==
|