Topic: Linked List Problem / Level: advanced

Problem: Write a function to rearrange nodes in a circular singly linked list such that all prime-numbered positions come before composite-numbered positions.

Run the code to see the output here...