Partition function P: Difference between revisions

m
→‎Julia: Recursive: BigInt operations are not Julia's forte as of 1.5.2
m (→‎Julia: Recursive: BigInt operations are not Julia's forte as of 1.5.2)
Line 149:
break
end
sign =if ((i-1)%4)<2 ? 1 : -1
psum += sign*partitionsP(n-pd)
else
psum -= partitionsP(n-pd)
end
end
psum
Line 160 ⟶ 163:
{{out}}
<pre>p(6666) = 193655306161707661080005073394486091998480950338405932486880600467114423441282418165863
0.405178260310 seconds (53.3458 M allocations: 11477.048974 MiB, 138.3454% gc time)</pre>
 
=={{header|Phix}}==
10

edits