Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add @Prime validator #26

Open
1 of 2 tasks
jossmoff opened this issue Jul 15, 2023 · 0 comments
Open
1 of 2 tasks

Add @Prime validator #26

jossmoff opened this issue Jul 15, 2023 · 0 comments
Assignees
Labels
✨ enhancement New feature or request 🔢 numeric Relates to numeric based bean validation
Milestone

Comments

@jossmoff
Copy link
Owner

Search before asking

  • I had searched in the issues and found no similar issues.

Description

Add the validator to check if a given number is prime which can be useful for security purposes.

Solution

Use Miller-Rabin and look at the following thread

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@jossmoff jossmoff added ✨ enhancement New feature or request 🔢 numeric Relates to numeric based bean validation labels Jul 15, 2023
@jossmoff jossmoff added this to the Version 1.0.0 milestone Jul 15, 2023
@jossmoff jossmoff self-assigned this Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request 🔢 numeric Relates to numeric based bean validation
Projects
None yet
Development

No branches or pull requests

1 participant