The sum and product puzzle
Asked at Jane Street, Citadel
Two integers and satisfy . Mr. P is told only their product ; Ms. S is told only their sum . They are truthful perfect logicians and have this conversation:
- P: "I don't know the two numbers."
- S: "I knew you didn't. I don't know them either."
- P: "Now I know the two numbers."
- S: "Now I know them too."
Find and .
Show a hint
Each statement is a filter. Statement 2 is the powerful one: S is sure P couldn't know, which means S's sum cannot be written as a sum of two primes (among other exclusions).