gthang points out:
I'm confused why we would want to run the loop 100 times if it doesn't need to.
I did an exhaustive loop (1...) and returned i if i multipied by i == number but then I also did an else if check to see if i multipled by i was greater than number, and if so, to break from the loop.
You have advanced insight into problem solving. Nice! This will help you later on.
The point of earlier lessons isn't focused so much on writing precise, tight, perfect code. It's about learning concepts.
You'll see this in later episodes, too. @twostraws will walk you down a design path full of nice working code. Then, BAM!, he'll erase a 10 line method you meticulously copied line by line and show, instead, a one line version producing the same results. You may ask why he didn't start with the one-line solution?
This is because it's good practice to use your brain to think through the multiple steps to solve a logic problem. Then work through the steps to reduce the complexity. Then, finally, using a newly introduced feature to accomplish the same task with one line of code.