Skip to content

All defined Woodall primes hit the p % 4n === 3n shortcut - modular power algorithm, not really modular square root. #8

Description

@esc-mhild

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions