Qualcomm interview question

Write a program to delete nodes with prime number data in a singly linked list