JavaScript
JavaScript copied to clipboard
Algorithm shor
Implemented the classical version of Shor's quantum algorithm for factorizing integers.
Any suggestions?
Any suggestions?
See my review comment above: Leverage modular arithmetics to keep your numbers small. Example from my Lua implementation of the Miller-Rabin primality test.
Any suggestions?
See my review comment above: Leverage modular arithmetics to keep your numbers small. Example from my Lua implementation of the Miller-Rabin primality test.
That could be an interesting idea. But my worry is that is could make the algorithm slower, i will check though.