You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('') and can be up to 35 characters long.
Dan Ballard
83a6f8573f

2 years ago  

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