Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

Primes

> DevOps
Open source

Prime number projects in 100+ programming languages, to compare their speed - and their programmer's cleverness

3.0K stars0 likes1 views
WebsiteGitHub

About

Prime number projects in 100+ programming languages, to compare their speed - and their programmer's cleverness

Primes | A Software Drag Race

Source code to Dave's Garage videos benchmarking the same prime number sieve in a selection of 100+ programming languages, as featured in this project repository.

The first video brought many visitors and contributors here initially, so we're linking to it for convenience:

Background

This project was an unplanned spin-off from the video linked to above, in which Dave drag-races three programming languages (C#, C++ and Python) to compare their relative speeds, using the Sieve of Eratosthenes algorithm to identify prime number up to a certain limit.

He posted the source code of his implementations online (in the first incarnation of this repo, in fact), after which many, many people engaged with the idea and started opening PRs to add alternative implementations - whether in approach and/or language - to the collection. As Dave has a YouTube channel to run, he decided to seek help with managing this.

Status

Since the second quarter of 2021, the Primes project has been owned and managed by its current maintainers, Rutger van Bergen and Tudor Marghidanu.

We now have more than 100 distinct programming languages in the collection - and more if meaningful variations are considered -, tooling to execute automated builds and (daily) benchmarks, and an in-browser app to explore the results thereof.

Community contributions

Community contributions, fixes and improvements are accepted. If you want to add your own solution, please read CONTRIBUTING.md.

Running the benchmarks

The vast majority of solutions in this repository can be built and run with one Makefile. This is described in BENCHMARK.md.

Viewing benchmark results

The PrimeView web application can be used to view, filter and sort results generated by a number of benchmark machines provided by Dave and the maintainers.

Note that any feedback, suggestions, PRs concerning PrimeView need to be made on the application's own repository.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Cbenchmarkbenchmarksdockerdrag-race

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理