Skip to content

Instantly share code, notes, and snippets.

@swanandp
Last active August 29, 2015 14:19
Show Gist options
  • Save swanandp/4796130ab08991b71d1c to your computer and use it in GitHub Desktop.
Save swanandp/4796130ab08991b71d1c to your computer and use it in GitHub Desktop.

The Sum and Product puzzle

There are two natural numbers m, n greater than 1: their sum does not exceed 100. Now Sarah knows the sum s = m + n, and Paul knows the product p = m * n.

They have the following dialogue:

Paul: I don't know what m and n are.
Sarah: No, I knew that you didn't know. And I don't know what they are either.
Paul: Oh, but now I do know!
Sarah: And now so do I!

What are m and n?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment