The Gray Man wants to test The Hardy Boys.
He says to them, "I've selected 2 positive integers, both bigger than one." He then proceeds to reveal their total and product to Frank and Joe respectively, and asks, "Now, can you surmise the numbers that I've selected?". The Hardy Boys accept this challenge. Frank says, "I don't know Mr. Gray's numbers." Joe responds, "I don't know them either." Frank exclaims, "Hey! Now I know." Joe cries out, "Then I know them too." Fenton Hardy had been a silent observer of this scene. He goes to the brothers and declares, "I know Mr. Gray's numbers as well!"
What are The Gray Man's numbers?
Gray must have told Frank 6 or greater. (Or else Frank could conclude that the numbers are either $(2,2)$ or $(2,3)$ for 4, and 5 respectively.
Gray must have told Joe a number with 3 or more proper divisors. (Or else Joe can conclude by just finding out the two divisors.)
Suppose the true numbers are $(N,M)$.
Frank is left guessing at $$(2, N+M-2), (3, N+M-3), (4, N+M-4), ...$$ He knows Joe is told one of $$2(N+M-2), 3(N+M-3), ...$$
But given Joe's answer he can eliminate any of the choices which have too few factors. This must eliminate all but one choice. Then we cannot have had both of these guesses for Frank: $(4, N+M-4)$ and $(6, N+M-6)$, because neither of these can be eliminated by Frank with Joe's information. (Their products both have more than three factors due to the 4 and the 6).
Then $N+M-6 \lt 2 \implies N+M \lt 8$
We can see that $N+M = 6$ does not fit the story:
Then Frank guesses at $(2,4), (3,3)$
Through Joe, he can eliminate both of these options.
Try $N+M = 7$ Then Frank guesses at $(2,5), (3,4)$ After hearing Joe's information, he eliminates $(2,5)$ and knows $(3,4)$. He now knows Gray's numbers. Everyone else in the story then reads this web page and also knows the numbers. So this is the only case consistent with the story.