algorithms

Create 2314

This is how you create the number 7.

MakeIntVar A
Inc A
Inc A
A=A*A
A=A+A
Dec A

Or

MakeIntVar A
MakeIntVar B
Inc A
Inc B
Shl A, A
Shl A, A
A=A-B

You can do all the basic operations + – * \ and you can shift right and left, and decrease or increase any variable, which you have to “MakeIntVar” first. By doing that, the variable is initialized to zero.

Now, make 2314 with the shortest possible algorithm.

Standard

2 thoughts on “Create 2314

  1. Pingback: Rational Feed – deluks917

Leave a comment