The beauty of Shor's algorithm is that it shows how a quantum computer can solve a problem that is believed to be intractable for classical computers.
The only way to avoid mistakes is to have no new ideas.