Prime reciprocal sum: Difference between revisions
Content added Content deleted
Line 513: | Line 513: | ||
=={{header|Phix}}== |
=={{header|Phix}}== |
||
The Julia entry took over 4 hours to get the 17th on this box, so I just went with "keep it all under 10s"... |
The Julia entry took over 4 hours to get the 17th on this box, so I just went with "keep it all under 10s"...<br> |
||
<small>(As others have alluded, it is all about getting the next prime. Even should you land on one straightaway, it still takes quite some time to prove an n-thousand digit number ''is'' prime.)</small> |
|||
<!--<syntaxhighlight lang="phix">(phixonline)--> |
<!--<syntaxhighlight lang="phix">(phixonline)--> |
||
<span style="color: #008080;">with</span> <span style="color: #008080;">javascript_semantics</span> |
<span style="color: #008080;">with</span> <span style="color: #008080;">javascript_semantics</span> |
||
Line 551: | Line 552: | ||
13: 12748246592672078196...20708715953110886963 (592 digits) |
13: 12748246592672078196...20708715953110886963 (592 digits) |
||
14: 46749025165138838243...65355869250350888941 (1,180 digits) |
14: 46749025165138838243...65355869250350888941 (1,180 digits) |
||
</pre> |
|||
If you've really got nothing better to do, you can also get, in 10 mins on 64-bit, thrice that on 32-bit: |
|||
<pre> |
|||
15: 11390125639471674628...31060548964273180103 (digits: 2358) |
|||
16: 36961763505630520555...02467094377885929191 (digits: 4711) |
|||
</pre> |
</pre> |
||