Hacker News new | ask | show | jobs
by falcor84 760 days ago
I just tried it with chatgpt and got what seems like the right answer:

The farmer can get across the river with the sheep in one trip. Here's how:

1. The farmer and the sheep get into the boat. 2. They both cross the river together.

Since the boat can hold one person and one sheep, they can make the journey in a single trip. The fewest number of trips required is just one.

1 comments

That's fair. I get the wrong answer on the gpt3 and gpt4-o models, but there's always some uncertainty involved in these gaps. When I appended "Consider your answer carefully." to my prompt, it answered as though the goal was for only the sheep to get across, and that the farmer had to get back to the original shore.