Jump to content

Ormiston triples: Difference between revisions

m
→‎faster version (win64 only): oops, it was collecting the middle primes
(→‎{{header|Phix}}: added faster version)
m (→‎faster version (win64 only): oops, it was collecting the middle primes)
Line 1,689:
<span style="color: #000000;">count</span> <span style="color: #0000FF;">+=</span> <span style="color: #000000;">1</span>
<span style="color: #008080;">if</span> <span style="color: #000000;">count</span><span style="color: #0000FF;"><=</span><span style="color: #000000;">25</span> <span style="color: #008080;">then</span>
<span style="color: #000000;">orm25</span><span style="color: #0000FF;">[</span><span style="color: #000000;">count</span><span style="color: #0000FF;">]</span> <span style="color: #0000FF;">=</span> <span style="color: #7060A8;">sprintf</span><span style="color: #0000FF;">(</span><span style="color: #008000;">"%d"</span><span style="color: #0000FF;">,{</span><span style="color: #000000;">p1p2</span><span style="color: #0000FF;">})</span>
<span style="color: #008080;">if</span> <span style="color: #000000;">count</span><span style="color: #0000FF;">=</span><span style="color: #000000;">25</span> <span style="color: #008080;">then</span> <span style="color: #000000;">showt</span><span style="color: #0000FF;">()</span> <span style="color: #008080;">end</span> <span style="color: #008080;">if</span>
<span style="color: #008080;">end</span> <span style="color: #008080;">if</span>
Line 1,703:
<pre>
Smallest members of first 25 Ormiston triplets:
1111721311117123 1298083712980783 1496407114964017 3263823132638213 3296441332964341
3353983733539783 3586803135868013 4405803144058013 4610327346103237 4801503148015013
5032427350324237 5240283752402783 5800529358005239 6060127360601237 6139529361395239
7469987974699789 7601289776012879 7816321378163123 8090589780905879 8196641381966341
8232427382324237 8252307182523017 8327983783279783 8605081786050781 9251441392514341
 
368 Ormiston triplets before 1,000,000,000 (11s)
4,925 Ormiston triplets before 10,000,000,000 (1:4645)
</pre>
 
7,806

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.