Computers are very good at repeating a known "recipe". They can add numbers billions of time per second. Yes, billions with a bee.
The hard part is coming up with a recipe that solves your problem and that the machine can run without breaking things when it runs around with a few billion steps per second. You have to think ahead for it and handle edge cases in the recipe.
That is the really hard part.