Topic: Linked List Problem / Level: intermediate

Problem: How do you split a sorted 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...