Problem 3618 · Medium

Split Array by Prime Indices

Send each element to one of two groups by whether its 0-based index is prime, then compare the two sums.

Open the interactive visualisation