Topic: Linked List Problem / Level: advanced

Problem: Write a function to split a circular singly linked list into two lists where one list contains prime numbers and the other contains composite numbers.

Run the code to see the output here...