CAn someone give the C code for this? thanks :) :

A prime number is an integer, greater than 1, that is only divisible by 1 and itself. 3, 11, and 43 are examples of prime numbers. Twin primes are a pair of prime numbers which differ by 2. For example, 3 and 5, and 11 and 13, are twin primes.

Write a program that generates a list of all twin primes between 2 and 1000.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.