# GPT-4 Prompt Engineering: Solving Hard Riddles, Puzzles and Math Problems - WOW!!

TLDRIn this video, the presenter challenges GPT-4 with a series of complex riddles, puzzles, and math problems to test its reasoning and problem-solving abilities. GPT-4 successfully solves each challenge, including identifying the origin of a cartoon character's weapon, figuring out the number of animals on a farm based on given conditions, determining the number of cards in a pack with lost cards, and deducing the age of two brothers based on their age relationship. The video showcases GPT-4's impressive logical reasoning and its ability to provide clear explanations for its solutions, highlighting its advanced capabilities in prompt engineering.

### Takeaways

- π§ The video tests GPT-4's capabilities in solving riddles, puzzles, and math problems.
- π€ GPT-4 is presented as a persona focused on solving these types of problems using logic and reasoning.
- πΌοΈ The first riddle involves identifying the country of origin of an object held by a cartoon character, which GPT-4 solves correctly.
- π The second problem is a farm riddle about the number of animals, which GPT-4 also solves accurately.
- π A math problem about a pack of cards with a specific distribution is tackled by GPT-4, resulting in the correct answer.
- π A murder mystery riddle is solved by GPT-4, demonstrating its ability to deduce the presence of another person in the room.
- π¦ The age riddle involving two brothers and their age difference is solved by setting up equations, showing GPT-4's mathematical prowess.
- πΈ A riddle about a princess and three boxes with contradictory messages is solved using reasoning, highlighting GPT-4's logical skills.
- π The video showcases GPT-4's ability to handle complex problems and maintain context throughout the calculations.
- π The presenter expresses satisfaction with GPT-4's performance, especially in comparison to previous versions.
- π The video invites viewers to suggest more challenges for GPT-4 and to engage with the content through comments.

### Q & A

### What was the purpose of the video?

-The purpose of the video was to test GPT-4's capabilities in solving hard riddles, puzzles, and math problems.

### What role was created for GPT-4 in the video?

-A role of a very smart puzzle, riddle, and math problem solver was created for GPT-4.

### What is the name of the famous museum in France where Michael is in the riddle?

-The famous museum in France where Michael is in the riddle is the Louvre.

### What is the most famous painting in the Louvre that Michael is looking at?

-The most famous painting in the Louvre that Michael is looking at is the Mona Lisa, painted by Leonardo da Vinci.

### What cartoon character does Michael think of when he sees the painting?

-Michael thinks of Leonardo from the Teenage Mutant Ninja Turtles when he sees the painting.

### What does the cartoon character Leonardo usually hold in his hand?

-The cartoon character Leonardo usually holds a katana in his hand.

### What is the country of origin of the item the cartoon character usually holds in his hand?

-The country of origin of the item the cartoon character usually holds in his hand is Japan.

### What is the solution to the farmer's riddle involving sheep, goats, and horses?

-The solution to the farmer's riddle is that the farmer has three sheep, two goats, and one horse.

### What is the solution to the card problem involving dealing cards among different numbers of people?

-The solution to the card problem is that there are 47 cards in the pack.

### What is the solution to the riddle about the man found dead in his study with a gun and a tape recorder?

-The solution is that the man was murdered because he wouldn't have been able to press the stop button on the tape recorder if he had shot himself.

### What is the solution to the riddle about the princess Anna and the three boxes with messages?

-The solution is that Anna's picture is in the silver box because if the gold box's message was true, the bronze box's message would also have to be true, which is not possible.

### What is the solution to the riddle about the brother's ages?

-The solution is that the older brother is 17 years old and the younger brother is 7 years old.

### Outlines

### π§© Testing GPT4 with Riddles and Math Problems

The video script introduces a challenge where GPT4 is put to the test with a series of riddles, puzzles, and math problems. The creator establishes a persona for GPT4 as a 'smart puzzle riddle and math problem solver' and selects GPT4 for its high reasoning capabilities. The first riddle involves a man named Michael at a museum in France, which leads to the identification of a famous artist and a cartoon character, concluding with the country of origin of an item associated with the cartoon. GPT4 successfully solves the riddle, impressing the creator.

### π Farm Riddle and Card Math Problem

The script continues with a farm riddle where the farmer has a certain number of sheep, goats, and horses, with clues given about the remaining animals after certain counts. GPT4 provides a logical solution, identifying the exact number of each animal. Following this, a math problem about a pack of cards is presented, where the number of cards is deduced based on the remainders after dealing cards among different numbers of people. GPT4 solves this complex problem, revealing there are 47 cards in the pack.

### π Murder Mystery Riddle and Age Calculation Problem

The video script presents a murder mystery riddle where a man is found dead with a recording that seems to suggest suicide. However, GPT4 logically deduces that it must be a murder based on the impossibility of the victim stopping the recording themselves. Another problem involves calculating the ages of two brothers based on their age relationship over time. GPT4 sets up and solves the equations, determining the brothers' current ages accurately.

### π° The Princess and the Three Boxes Riddle

The final segment of the script features a riddle about a king who wants to ensure his daughter marries an intelligent man. He creates a test involving three boxes with messages, only one of which is true. GPT4 uses reasoning to determine that Anna's picture is in the silver box, as it's the only option that doesn't contradict the king's statement about the truthfulness of the messages.

### π£ Conclusion and Future Video Teaser

The script concludes with the creator reflecting on the success of GPT4 in solving the presented challenges and expressing enjoyment in creating and selecting the riddles. The creator invites viewers to share suggestions for further testing GPT4's capabilities and thanks them for watching, promising more videos in the series that will explore prompt engineering with GPT4.

### Mindmap

### Keywords

### π‘GPT-4

### π‘Persona

### π‘Riddles

### π‘Puzzles

### π‘Math Problems

### π‘Logic

### π‘Reasoning

### π‘Solving

### π‘Acknowledge

### π‘Prompt Engineering

### Highlights

GPT-4 is tested with hard riddles, puzzles, and math problems to showcase its reasoning capabilities.

A persona focused on solving riddles and math problems is created for GPT-4.

GPT-4's reasoning scale is set to the maximum, suggesting it may outperform previous versions.

The first riddle involves identifying the country of origin of an item associated with a cartoon character.

GPT-4 successfully deduces the answer to the first riddle using logical reasoning.

A farmer's riddle about the number of animals he has is presented to GPT-4.

GPT-4 provides a logical solution to the farmer's riddle, identifying the exact number of each animal.

A complex math problem involving a pack of cards with missing cards is introduced.

GPT-4 performs an extensive calculation to solve the card problem, arriving at the correct number of cards.

A murder riddle is presented, challenging GPT-4 to determine if the death was a suicide or murder.

GPT-4 logically concludes that the death was a murder based on the evidence provided.

A math problem involving the ages of two brothers and their relationship over time is given to GPT-4.

GPT-4 solves the age problem using equations, providing the current ages of both brothers.

A riddle about a king, his daughter, and suitors is presented to test GPT-4's logical reasoning.

GPT-4 correctly identifies the box containing the princess's picture using deductive reasoning.

The video concludes with a call for more riddle suggestions to further test GPT-4's capabilities.