• Stars
    star
    1
  • Language
    Crystal
  • License
    GNU Lesser Genera...
  • Created about 4 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Crystal implementation of a prime number generator

prime

Build Status

A basic implementation of a prime number generator.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      prime:
        github: wontruefree/prime

Usage

require "prime"

primes = [] of Int32

Prime.each do |p|
  break if p > 541
  primes << p
end

Contributing

  1. Fork it (https://github.com/your-github-user/prime/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors