Topic: Linked List Problem / Level: intermediate

Problem: Write a function to split a doubly linked list into two lists based on whether the node values are prime.

Run the code to see the output here...