View Single Post
 2018-03-04, 07:38 #2 CRGreathouse     Aug 2006 3·1,993 Posts Each of the phi(4800) = 1280 residue classes coprime to 4800 are (a priori) possible for q and r. But once you pick one that fixes the other. So you can search like this: Code: `findCar3(p)=forprime(r=3,p-6, if(gcd(r,p-1)>1, next); my(q=lift(Mod(1/r,p-1))); if(q>r && q

2, next); my(q=lift(Mod(1/r,p-1))); if(q>r && q