Quant Memo
Brainteasers/●●●●●

The sum and product puzzle

Asked at Jane Street, Citadel

Two integers xx and yy satisfy 2xy992 \le x \le y \le 99. Mr. P is told only their product xyxy; Ms. S is told only their sum x+yx + y. They are truthful perfect logicians and have this conversation:

  1. P: "I don't know the two numbers."
  2. S: "I knew you didn't. I don't know them either."
  3. P: "Now I know the two numbers."
  4. S: "Now I know them too."

Find xx and yy.

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).

Your answer

More Brainteasers questions