Topic: Array Problem / Level: advanced

Problem: Find the number of ways to partition an array into three subarrays where the sum of elements in each is divisible by a prime number.

Run the code to see the output here...