Lets write a C program to count prime numbers between user entered/input range of numbers, using function/method. Prime Number: is…