Script - Bitcoin Programming Discussion

answer : 2 2 OP_MUL 3 3 OP_MUL OP_ADD

1 Like

2 2 OP_MUL 3 3 OP_MUL OP_ADD

Spent a while trying to figure out why I kept getting 0xD, turns out because its the correct answer :joy:

1 Like

The answer is: 2 2 OP_MUL 3 3 OP_MUL OP_ADD

1 Like
2 2 OP_MUL 3 3 OP_MUL OP_ADD

Solution 0xD (13)

1 Like

2 2 op_mul 3 3 op_mul op_add

1 Like

(22) + (33) Evaluates to: 2 2 OP_MUL 3 3 OP_MUL OP_ADD

1 Like

Just wondering from reading the Script wiki - will learning the FORTH programming language make me a better Bitcoin programmer?

2 2 op_mul 3 3 op_mul op_add

1 Like

I doubt it, when searching for that language I found out its just an old stack based language. True they are both stack languages but have a different use and different functions. Bitcoin script is primarily intended for transactions and FORTH is a common stack language. I’m not sure if its even used today.

1 Like
2 2 OP_MUL
3 3 OP_MUL
OP_ADD

Result 0xD

1 Like

2 2 op_mul 3 3 op_mul op_add

1 Like

solution:
2 2 OP_MUL 3 3 OP_MUL OP_ADD

1 Like

The solution
2 2 op_mul 3 3 op_mul op_add
The result is in Hex

1 Like

Solution is:

2 2 OP_MUL
3 3 OP_MUL
OP_ADD

1 Like

I dont think ill be the first one coming with the answer here hahah…

2 2 OP_MUL 3 3 OP_MUL op_add

1 Like

2 2 OP_MUL 3 3 OP_MUL OP_ADD
Script for 2x2 plus 3x3 … it is actually place 2 and place 2 and now multiply and place the answer, then place 3, place 3, then multiple these top two numbers and place the result, then add the two elements left 4 + 9 and then place the result into the stack

1 Like

2 2 op_mul 3 3 op_mul op_add really simple and easy.

1 Like

Answer is
2 2 OP_MUL 3 3 OP_MUL OP_ADD

1 Like

2 2 op_mul
3 3 op_mul op_add

1 Like

2 2 op_mul 3 3 op_mul op_add

1 Like