jossmoff/chickpea

Add `@Prime` validator

Opened this issue · 0 comments

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!