Dan Ballard 83a6f8573f | 9 months ago | |
---|---|---|
src | 10 years ago | |
ChangeLog | 10 years ago | |
Makefile | 9 months ago | |
README | 5 years ago | |
autoTest.pl | 9 months ago | |
languages | 10 years ago | |
primes.4.lua | 10 years ago | |
primes.5.lua | 10 years ago | |
primes.5c | 10 years ago | |
primes.adb | 10 years ago | |
primes.alt.c | 10 years ago | |
primes.alt2.c | 10 years ago | |
primes.alt3.c | 10 years ago | |
primes.awk | 10 years ago | |
primes.c | 10 years ago | |
primes.cbl | 10 years ago | |
primes.cpp | 10 years ago | |
primes.cs | 10 years ago | |
primes.e | 10 years ago | |
primes.erl | 10 years ago | |
primes.f | 8 years ago | |
primes.fasl | 10 years ago | |
primes.fe | 10 years ago | |
primes.fs | 10 years ago | |
primes.go | 9 months ago | |
primes.go.array | 9 months ago | |
primes.hs | 8 years ago | |
primes.html | 10 years ago | |
primes.java | 10 years ago | |
primes.lisp | 10 years ago | |
primes.m | 8 years ago | |
primes.m4 | 10 years ago | |
primes.ml | 10 years ago | |
primes.pas | 10 years ago | |
primes.perl.pl | 10 years ago | |
primes.php | 10 years ago | |
primes.pike | 10 years ago | |
primes.prolog.pl | 10 years ago | |
primes.py | 8 years ago | |
primes.r | 10 years ago | |
primes.rb | 10 years ago | |
primes.rexx | 10 years ago | |
primes.rs | 9 months ago | |
primes.scala | 8 years ago | |
primes.scm | 10 years ago | |
primes.sh | 10 years ago | |
primes.sieve.c | 10 years ago | |
primes.sml | 10 years ago | |
primes.st | 10 years ago | |
primes.tcl | 10 years ago | |
primes.vb | 10 years ago | |
primes.x86.s | 10 years ago | |
primes_prolog.pl | 10 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).