Topic: Linked List Problem / Level: advanced

Problem: Write a function to split a sorted singly linked list into two lists where one contains prime-numbered nodes and the other contains composite-numbered nodes.

Run the code to see the output here...