Skip to content

Instantly share code, notes, and snippets.

@dwaltrip
Last active March 14, 2023 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwaltrip/cad19703982c7f308fdbe5786e1c21d6 to your computer and use it in GitHub Desktop.
Save dwaltrip/cad19703982c7f308fdbe5786e1c21d6 to your computer and use it in GitHub Desktop.
GPT-4 correctly calculating more difficult math problems

Me: What is 124 * 983? Perform the calculation by breaking it into easier sub-problems, such as (100 * 983) and (20 * 983). Proceed logically and carefully do each step.

GPT-4: Sure, let's break down the multiplication into smaller parts.

124 * 983 can be separated into (100 * 983) + (20 * 983) + (4 * 983)

Let's find the product of 100 * 983:
100 * 983 = 98,300

Now, let's find the product of 20 * 983:
20 * 983 = 2 * 983 * 10
First, let's calculate 2 * 983:
2 * 983 = 1,966
Now, multiply by 10:
1,966 * 10 = 19,660

Lastly, let's find the product of 4 * 983:
4 * 983 = 2 * 2 * 983
First, let's calculate 2 * 983 again (we've already done it before):
2 * 983 = 1,966
Now, multiply by 2:
1,966 * 2 = 3,932

Now, we'll add up the results from each step:

98,300 + 19,660 + 3,932 = 121,892

So, 124 * 983 = 121,892


Me: Let's do the same thing with 4523 * 8911. Be concise in your explanation, but make sure to carefully break into sub-problems.

GPT-4: Sure, let's break down the multiplication of 4523 * 8911:

4523 * 8911 = (4000 * 8911) + (500 * 8911) + (20 * 8911) + (3 * 8911)

4000 * 8911:
4 * 8911 * 1000 = 35,644 * 1000 = 35,644,000

500 * 8911:
5 * 8911 * 100 = 44,555 * 100 = 4,455,500

20 * 8911:
2 * 8911 * 10 = 17,822 * 10 = 178,220

3 * 8911:
3 * 8911 = 26,733

Now, add up the results: 35,644,000 + 4,455,500 + 178,220 + 26,733 = 40,304,453

So, 4523 * 8911 = 40,304,453

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