Topic: Linked List Problem / Level: intermediate

Problem: How do you remove all nodes from a singly linked list whose values are prime numbers without using extra space?

Run the code to see the output here...