Each thread would put its entries into a text file/csv. Use a bubble sort to order them and add the totals together
Type: Posts; User: SteveNaild
Each thread would put its entries into a text file/csv. Use a bubble sort to order them and add the totals together
Is it worth running 4 threads? One for a=1, one for a=upperLimit/4, one for a=upperLimit/2 and one for a=upperLimit*3/4 ?
Obviously the first stops at (upperLimit/4)-1, etc
Not gone into it in serious depth, but the number of possible answers stops long before the program does. Is there a maximum value of a beyond which there cannot be any new solutions for a given...