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
add rust!; make go not 'cheat' with array based method and print each number (save array base impl tho); update autotest wrt Ruby, now all common ruby is 2+
3 years ago
src initial import of 1.02 12 years ago
ChangeLog initial import of 1.02 12 years ago
Makefile add rust!; make go not 'cheat' with array based method and print each number (save array base impl tho); update autotest wrt Ruby, now all common ruby is 2+ 3 years ago
README fix copy paste fail 7 years ago
autoTest.pl add rust!; make go not 'cheat' with array based method and print each number (save array base impl tho); update autotest wrt Ruby, now all common ruby is 2+ 3 years ago
languages initial import of 1.02 12 years ago
primes.4.lua initial import of 1.02 12 years ago
primes.5.lua initial import of 1.02 12 years ago
primes.5c initial import of 1.02 12 years ago
primes.adb initial import of 1.02 12 years ago
primes.alt.c initial import of 1.02 12 years ago
primes.alt2.c initial import of 1.02 12 years ago
primes.alt3.c initial import of 1.02 12 years ago
primes.awk initial import of 1.02 12 years ago
primes.c initial import of 1.02 12 years ago
primes.cbl initial import of 1.02 12 years ago
primes.cpp initial import of 1.02 12 years ago
primes.cs initial import of 1.02 12 years ago
primes.e initial import of 1.02 12 years ago
primes.erl initial import of 1.02 12 years ago
primes.f ported from g77 to gfortran 10 years ago
primes.fasl initial import of 1.02 12 years ago
primes.fe initial import of 1.02 12 years ago
primes.fs initial import of 1.02 12 years ago
primes.go add rust!; make go not 'cheat' with array based method and print each number (save array base impl tho); update autotest wrt Ruby, now all common ruby is 2+ 3 years ago
primes.go.array add rust!; make go not 'cheat' with array based method and print each number (save array base impl tho); update autotest wrt Ruby, now all common ruby is 2+ 3 years ago
primes.hs update haskell code for new haskel 2010 library standard 10 years ago
primes.html initial import of 1.02 12 years ago
primes.java initial import of 1.02 12 years ago
primes.lisp initial import of 1.02 12 years ago
primes.m fixed for newer gcc objective c syntax/compile blah 10 years ago
primes.m4 initial import of 1.02 12 years ago
primes.ml initial import of 1.02 12 years ago
primes.pas initial import of 1.02 12 years ago
primes.perl.pl initial import of 1.02 12 years ago
primes.php initial import of 1.02 12 years ago
primes.pike initial import of 1.02 12 years ago
primes.prolog.pl initial import of 1.02 12 years ago
primes.py fir type error (float != int) for apparently more strict python 10 years ago
primes.r initial import of 1.02 12 years ago
primes.rb initial import of 1.02 12 years ago
primes.rexx initial import of 1.02 12 years ago
primes.rs add rust!; make go not 'cheat' with array based method and print each number (save array base impl tho); update autotest wrt Ruby, now all common ruby is 2+ 3 years ago
primes.scala added scala support 10 years ago
primes.scm initial import of 1.02 12 years ago
primes.sh initial import of 1.02 12 years ago
primes.sieve.c initial import of 1.02 12 years ago
primes.sml initial import of 1.02 12 years ago
primes.st initial import of 1.02 12 years ago
primes.tcl initial import of 1.02 12 years ago
primes.vb initial import of 1.02 12 years ago
primes.x86.s initial import of 1.02 12 years ago
primes_prolog.pl initial import of 1.02 12 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: 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).