Prime and Twin Prime Numbers in C...anybody?
Posted on 2003-02-25
I'm trying to write a program that calculates all of the pairs of numbers ranging from 1 through 400 where the first number is any prime number, and the second is its twin prime, which is equal to the 2X the first number +1, then prints each pair.
I'm able to get programs to run that calculate and print all prime numbers in a range just fine, but this just doesn't seem to be working. Does anybody know how this might be done?