Implements Miller-Rabin algorithm to check if a number is prime
Add this to your application's shard.yml
:
dependencies:
miller_rabin:
github: kuende/miller_rabin
require "miller_rabin"
MillerRabin.probably_prime(10459103, 100)
MillerRabin.probably_prime(5915587219_u64, 100)
- Fork it ( https://github.com/kuende/miller_rabin/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request