Topic: Linked List Problem / Level: advanced

Problem: Implement a function to split a sorted singly linked list into two lists where one contains nodes with prime values and the other contains nodes divisible by 3.

Run the code to see the output here...