Problem 3569 · Hard

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.

Open the interactive visualisation