Q. The sum of two prime number is $999$. What is their product?
I know the answer is:
$997+2=999$ so all you would have to do is multiply $997$ and $2$
My question is what if there was another question like this but the prime numbers were in the middle and not so blatantly obvious like above. In other words, how would one approach this problem without the use of trial and error?