Quote:
Originally Posted by JeppeSN
I should have said I was interested in odd primes only (and the number 1 is not prime).
/JeppeSN

Your OP never mentioned a and b should be prime. I don't see why "1 is not prime" is relevant. Do you mean to now require a>b>1?