Topic: Linked List Problem / Level: intermediate

Problem: Write a function to split a circular singly linked list into two lists based on whether the node values are prime or non-prime.

Run the code to see the output here...