Topic: Linked List Problem / Level: intermediate

Problem: Implement a function to split a doubly linked list into two separate lists based on prime values and non-prime values.

Run the code to see the output here...