Hello, Vlad!
Thank you for sharing this work.
All of the Woodall primes you define satisfy p % 4n === 3n and therefore hit the shortcut in the Tonelli-Shanks algorithm.
In this situation, the tonelliShanks function is redundant and POW algorithm degenerates into the computation of a modular power.
This may be good enough for the purpose, but we can get rid of a lot of brouhaha in the code and your package deserves an updated description of what it does.
Best wishes,
M.
Hello, Vlad!
Thank you for sharing this work.
All of the Woodall primes you define satisfy p % 4n === 3n and therefore hit the shortcut in the Tonelli-Shanks algorithm.
In this situation, the tonelliShanks function is redundant and POW algorithm degenerates into the computation of a modular power.
This may be good enough for the purpose, but we can get rid of a lot of brouhaha in the code and your package deserves an updated description of what it does.
Best wishes,
M.