The post says:
And this needs to be very fast since in use it's going to have to handle sums of up to 10^6.I don’t think your program can be used for this; it only works for small integers.
The so-called partition function p(n) represents the number of possible partitions of a natural number n (distinct and order independent). Unfortunately p(n) grows rapidly, see Partition. Try to run the program on n=1000.
In reply to Re^2: Decomposing sum to unique sets of summands
by dHarry
in thread Decomposing sum to unique sets of summands
by blackmanao
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |