From Dean Ballard comes a premier puzzle of primes:
Suppose you want to make two groups with equal sums using the first N2 prime numbers. What is the smallest value of N2 for which you can do this?
The answer is three! (Clearly, that wasn’t actually the puzzle.)
The first three primes are 2, 3, and 5, and you can split them up into two sets: {2, 3} and {5}. Sure enough, 2 + 3 = 5.
Your puzzle involves making three groups with equal sums using the first N3 prime numbers. What is the smallest value of N3 for which you can do this?
$3\vert N_3$, and more generally, $k\vert N_k$.
$N_3$ can be $10, 14, 16, 18, 24...$.
The first $10$ prime numbers are $2, 3, 5, 7, 11, 13, 17, 19, 23, 29$ and their sum is $129$.
Now you want to make six groups with equal sums using the first N6 prime numbers. What is the smallest value of N6 for which you can do this?
The sum of the first $57$ primes is the first time the sum is divisible by $6$. The sum is $6,870$ which yields $1145$ per group.
Incorporating as many of the largest numbers as possible and using as few additional numbers as possible is one dirty algorithm to determine the groups. I did not need to code this as I achieved answers fairly quickly.
For $N_6 = 57$, $6$ groups of $1145$ :
For $N_4 = 11$, $4$ groups of $40$ :
For $N_5 = 17$, $5$ groups of $88$ :
For $N_7= 22$, $7$ groups of $113$ :
For $N_8= 29$, $8$ groups of $185$ :