GitXplorerGitXplorer
t

prime_sieves

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
faac5e6c84125842352d24331b73459fdaecd087

Adding first-draft of work in Clojure

ttrydionel committed 15 years ago
Unverified
98cda14494e76ee78940f50ee85c353167f1d8eb

markdown gives me fits for some reason

ttrydionel committed 15 years ago
Unverified
61c02b36156f1c2fb159abd2d5eeaf57a155f2d3

Fixing markdown formatting

ttrydionel committed 15 years ago
Unverified
70073e79ed3637a8661fc23d61fb14216342a1be

Fixing markdown formatting

ttrydionel committed 15 years ago
Unverified
e360ca30fef460f804cf4008abc168c1df1ec3f2

Adding java implementation

ttrydionel committed 15 years ago
Unverified
5b42ef89e69fbe223125935b40f63d0402ff1d84

Initial commit

ttrydionel committed 15 years ago

README

The README file for this repository.

#Prime Sieves ##Introduction I did a lot of work on primes in college. As a result, whenever I'm playing with a new language, I'm compelled to implement a simple primality algorithm while testing things out. This project is a collection of these implementations.

##Caveats This is the simplest of all primality algorithms -- a factorization loop. It's naive and inefficient, but easy to understand. It's by no means geared towards cryptography, number theory or really anything but exploration. If you're looking for real primality tests, check out Wikipedia's entry on fast deterministic primality tests. Lots of good leads there.

##Implementations ###Java The original language I wrote this in as part of a research project. It's a standard imperative approach and not especially exciting.

###Ruby My current favorite language, this implementation feels super clean (unless you have a particular dislike for monkey-patching). Patches over Integer to put the algorithm on the number itself. Beautiful.

###Clojure Still hacking away on this one.

###Erlang Working through this one too.