Partition function P: Difference between revisions

Content added Content deleted
(Frink)
Line 515: Line 515:
<pre>PartitionsP(6666) = 193655306161707661080005073394486091998480950338405932486880600467114423441282418165863
<pre>PartitionsP(6666) = 193655306161707661080005073394486091998480950338405932486880600467114423441282418165863
time = 32.97 ms</pre>
time = 32.97 ms</pre>

=={{header|Frink}}==
Frink has a built-in function for counting partitions that uses Euler's pentagonal method. It works for arbitrarily-large integers and caches results.
<lang frink>println[partitionCount[6666]]</lang>
{{out}}
<pre>
193655306161707661080005073394486091998480950338405932486880600467114423441282418165863
</pre>


=={{header|Go}}==
=={{header|Go}}==