Given that each of p and q is a prime number:
Determine all possible pairs (p,q) that satisfy this equation:
p(p4+p2+10q) = q(q2+3)
clearvars
qset=primes(100000);
pset=primes(1000);
for p=pset
for q=qset
if p^5 + p^3 + 10*p*q == q^3 + 3*q
disp([p q])
end
end
end
finds only (2,5) having tested all 168 primes under 1000 for p, and all 9592 primes under 100,000 for q.
|
Posted by Charlie
on 2024-02-17 15:52:16 |