Finding The
Order Of 2

Timer: :
The order of 2 mod n is:


Also note that this implementation only works on modern browsers. If it takes more than 1 second to calculate for n = 4699, then you're not using a modern browser.