Question: I need a C program for the following which I cannot figure out. 3. In mathematics, two prime numbers are considered sexy if they have

I need a C program for the following which I cannot figure out.
 I need a C program for the following which I cannot

3. In mathematics, two prime numbers are considered sexy if they have a difference of 6 ("sex" is the Latin word for "six."). In other words, pairs of primes of the form (p, p 6). Given two integer numbers, write a C program to determine if the numbers are both prime and have a difference of 6. Input the smaller number fist. Check for positive values 1-30000. A user-defined function must be used. Do not list out all the sexy numbers-the values must be algorithmically calculated. Refer to the sample output below. Sample Runs (2): Enter two numbers (1-30000) 2 8 The numbers are not sexy primes. Enter two numbers (1-30000) 641 647 The numbers are sexy primes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!