Prime reciprocal sum: Difference between revisions
Content added Content deleted
m (Added reference to "bignum".) |
(add RPL) |
||
Line 719: | Line 719: | ||
15: 11390125639471674628..31060548964273180103 (2358 digits) |
15: 11390125639471674628..31060548964273180103 (2358 digits) |
||
16: 36961763505630520555..02467094377885929191 (4711 digits)</pre> |
16: 36961763505630520555..02467094377885929191 (4711 digits)</pre> |
||
=={{header|RPL}}== |
|||
Limited floating-point precision prevents from finding the correct 7th term. Program starts with a non-empty sequence to avoid the <code>∑LIST</code> calculation bug that occurs when the input list has less than two items. |
|||
{{works with|HP|49g}} |
|||
≪ {2 3} |
|||
1 4 '''START''' 1 OVER INV ∑LIST - INV →NUM IP NEXTPRIME + '''NEXT''' |
|||
≫ '<span style="color:blue">∑INVPR</span>' STO |
|||
{{out}} |
|||
<pre> |
|||
1: {2 3 7 43 1811 654149} |
|||
</pre> |
|||
=={{header|Wren}}== |
=={{header|Wren}}== |