Topic: Linked List Problem / Level: advanced

Problem: How do you split a sorted circular singly linked list into two lists where one contains prime values and the other contains composite values?

Run the code to see the output here...