Topic: Linked List Problem / Level: intermediate

Problem: How do you split a singly linked list into two linked lists, where one contains nodes with prime values and the other non-prime?

Run the code to see the output here...