Skip to content

retiman/project-euler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Euler Solutions

Description

These are solutions to Project Euler problems. It's easy to find solutions on the net, so if you don't want to spoil the fun, don't look at these.

The solutions are organized by language; you'll have to download a Docker image to run the solutions in a container. Most languages have official images, but some do not. For those that do not, I have published Docker images for them.

Feel free to do WHATEVER with the code; I've added a license so anybody can go wild with it.

Usage

  1. Install Docker.
  2. Install make.
  3. Generate prime numbers to use for some problems by running make primes.
  4. Run any solution from a solns directory via make <problem number>.
  5. Optionally install VSCode to run problems in a devcontainer or to run language specific lints.
  6. Optionally run make test from the solns/racket directory.
  7. Optionally check out solution explanations on the GitHub Pages for this repository (published from the docs directory).

The Makefile in each solution directory will download the appropriate Docker image if you don't have it already. None of the Makefiles assume that you are running on Windows/Linux/MacOS.