Topic: Array Problem / Level: intermediate

Problem: Check if an array can be rearranged such that all prime numbers appear before all composite numbers, keeping their relative order intact.

Run the code to see the output here...