Qualcomm Interview Question

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