Topic: Dynamic Programming Problem / Level: intermediate

Problem: Find the maximum product of a contiguous subarray where adjacent elements alternate between prime and composite numbers using dynamic programming.

Run the code to see the output here...