Mind your p's and q's cubed

Find the sum of all primes q<1000q<1000 such that for some prime p<qp<q, both qq divides p31p^3-1 and pp divides q31q^3-1.

×

Problem Loading...

Note Loading...

Set Loading...