Dan Ballard 83a6f8573f | 3 months ago | |
---|---|---|
src | 9 years ago | |
ChangeLog | 9 years ago | |
Makefile | 3 months ago | |
README | 4 years ago | |
autoTest.pl | 3 months ago | |
languages | 9 years ago | |
primes.4.lua | 9 years ago | |
primes.5.lua | 9 years ago | |
primes.5c | 9 years ago | |
primes.adb | 9 years ago | |
primes.alt.c | 9 years ago | |
primes.alt2.c | 9 years ago | |
primes.alt3.c | 9 years ago | |
primes.awk | 9 years ago | |
primes.c | 9 years ago | |
primes.cbl | 9 years ago | |
primes.cpp | 9 years ago | |
primes.cs | 9 years ago | |
primes.e | 9 years ago | |
primes.erl | 9 years ago | |
primes.f | 7 years ago | |
primes.fasl | 9 years ago | |
primes.fe | 9 years ago | |
primes.fs | 9 years ago | |
primes.go | 3 months ago | |
primes.go.array | 3 months ago | |
primes.hs | 7 years ago | |
primes.html | 9 years ago | |
primes.java | 9 years ago | |
primes.lisp | 9 years ago | |
primes.m | 7 years ago | |
primes.m4 | 9 years ago | |
primes.ml | 9 years ago | |
primes.pas | 9 years ago | |
primes.perl.pl | 9 years ago | |
primes.php | 9 years ago | |
primes.pike | 9 years ago | |
primes.prolog.pl | 9 years ago | |
primes.py | 7 years ago | |
primes.r | 9 years ago | |
primes.rb | 9 years ago | |
primes.rexx | 9 years ago | |
primes.rs | 3 months ago | |
primes.scala | 7 years ago | |
primes.scm | 9 years ago | |
primes.sh | 9 years ago | |
primes.sieve.c | 9 years ago | |
primes.sml | 9 years ago | |
primes.st | 9 years ago | |
primes.tcl | 9 years ago | |
primes.vb | 9 years ago | |
primes.x86.s | 9 years ago | |
primes_prolog.pl | 9 years ago |
https://danballard.com/projects/primes/
dan@mindstab.net
Mindstab.net Multi language prime number project:
Prime number finders in ~40 languages
and a test driver
2014: added go
2013: Cleanedup and small additions
Cleaned up code to work with newer versions of compilers and interpreters and added a few new languages
2011: Re-release
This project is still a terrible blunt way to see how different languages/implementation perform and compare at basic arithmatic and looping and crudly look at speed. And it's a small roseta stone too. Autotest.pl drives it all and it's appaling speghetti code I wrote half a decade ago and I probably still knew better. I've made a few quick updates since 1.01 from 2006 to make it run on Ubuntu 10.04 which is what I'm running. Your milage may vary, but it's on github now, so feel free to offer suggestions in code.
2004-2006
With this project I want to implement prime number finders in as many languages as I can. It's pretty much a way for me to learn a littlebit about a lot of languages. This project also comes with a test program (autoTest.pl) which can run and benchmark all the languages so I can see their various performances (part of learning about the languages).