Topic: Linked List Problem / Level: advanced

Problem: How do you rearrange nodes in a circular doubly linked list such that all nodes with prime-numbered values come before composite-numbered values?

Run the code to see the output here...