Maximize Count of Distinct Primes After Split
After each update, try every split point and add the distinct primes on each side, keeping the largest total.
After each update, try every split point and add the distinct primes on each side, keeping the largest total.