Popularity
0.7
Declining
Activity
0.0
Stable
1
1
0
Programming language: Crystal
License: GNU Lesser General Public License v3.0 only
Tags:
Data Generators
Latest version: v0.1.0
prime alternatives and similar shards
Based on the "Data Generators" category.
Alternatively, view prime alternatives based on common mentions on social networks and blogs.
-
hashids.cr
A Crystal shard to generate YouTube-like hashes from one or many numbers. Use hashids when you do not want to expose your database ids to the user.
Do you think we are missing an alternative of prime or a related project?
README
prime
A basic implementation of a prime number generator.
Installation
- 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
- Fork it (https://github.com/your-github-user/prime/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
Contributors
- Jack Thorne - creator and maintainer