Sequence: nth number with exactly n divisors: Difference between revisions

Content added Content deleted
(→‎{{header|Go}}: Added faster version.)
(→‎{{header|Go}}: Oops, wrong timing.)
Line 141: Line 141:
</pre>
</pre>


The following much faster version (runs in less than 30 seconds on my 1.6GHz Celeron) uses three further optimizations:
The following much faster version (runs in less than 90 seconds on my 1.6GHz Celeron) uses three further optimizations:


1. Apart from the 2nd and 10th terms, all the even terms are themselves even.
1. Apart from the 2nd and 10th terms, all the even terms are themselves even.