Skip to content
Project Euler solutions
Shell Scala Java C# JavaScript Erlang Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Project Euler Solutions

Solutions to Project Euler problems. The solutions are written in a variety of languages and must rely on features of that language only i.e. no third party libraries.

Solutions are executed through Docker containers which contain the necessary compilers and runtimes for each language. There may be several solutions per language.

The problem and answer can be included in plain text files in each problem directory, e.g.

├── 1
│   ├── cpp
│   │   └── ...
│   ├── go
│   │   └── ...
│   ├── java
│   │   └── ...
│   ├── answer
│   └── problem
├── ...

If present, these are displayed when the script is run and in particular if there is an answer, the solutions are checked against this and output in green or red accordingly.


  • bash, gnu core utils & perl
  • docker 1.5

A good internet connection and disk space is also required as the Docker images are several hundred MB each and 20+ languages are supported.

Quick Start

git clone && cd euler

To run all solutions to a given problem (prefixing with sudo if your Docker setup requires):

./ 1

To run a solution to a given problem for a particular language, use the language's source extension:

./ 1 java
./ 1 py


You can’t perform that action at this time.