Anaprimes: Difference between revisions

m
→‎{{header|Phix}}: changed <= to < so it now shows the first rather than last group found
m (→‎{{header|Phix}}: restored prev sig but built it faster, +10s but makes sort 60% faster (-60s, so 50s gain overall).)
m (→‎{{header|Phix}}: changed <= to < so it now shows the first rather than last group found)
Line 402:
<span style="color: #000000;">maxend</span> <span style="color: #0000FF;">+=</span> <span style="color: #000000;">1</span>
<span style="color: #008080;">end</span> <span style="color: #008080;">while</span>
<span style="color: #008080;">if</span> <span style="color: #000000;">maxlen</span> <span style="color: #0000FF;"><=</span> <span style="color: #000000;">maxend</span><span style="color: #0000FF;">-</span><span style="color: #000000;">maxstart</span> <span style="color: #008080;">then</span>
<span style="color: #000000;">maxlen</span> <span style="color: #0000FF;">=</span> <span style="color: #000000;">maxend</span><span style="color: #0000FF;">-</span><span style="color: #000000;">maxstart</span>
<span style="color: #000000;">longest</span> <span style="color: #0000FF;">=</span> <span style="color: #000000;">am</span>
Line 419:
<pre>
Largest anagram groups:
3-digits: [379149..937941], size 4 (0s)
4-digits: [12791237..97217321], size 11 (0s)
5-digits: [13789..98731], size 39 (0s)
6-digits: [123479..974213], size 148 (0s)
7,818

edits