I read what I wrote again and I'm sorry "
pairs which are primes between them". - I meant pairs OF NUMBERS which are primes between them - that means their only common divisor is 1.
I need to do a program for determinating the number of (a,b) pairs OF NUMBERS (a,b <=n) which are primes between them.
Using google translate - "prime among them".
Omg.. I mean, their only common divisor is 1. I don't know how the numbers with this property are called in english. An example of a pair of numbers which would be okay is 3 and 8. Only common divisor - 1.
In number theory, two integers a and b are said to be relatively prime, mutually prime, or coprime (also spelled co-prime) if the only positive integer that divides both of them is 1.