Skip to content
/ prime Public

A Crystal implementation of a prime number generator

License

Notifications You must be signed in to change notification settings

jkthorne/prime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Crystal implementation of a prime number generator

Resources

License

Stars

Watchers

Forks

Packages

No packages published