Codebook: Shor's Algorithm

Ask here about the “Shor’s Algorithm” Codebook topic from the “Shor’s Algorithm” module.

Hello
I find my implementation of shor algo to be a bit verbose. I wonder if there is a more elegant way to write the nested loops ?

Hi @yoshypdf ,

Our solution doesn’t use nested loops. Just a while loop and a couple of if statements.

Good motivation to keep exploring other ways to solve it! :smiley: