Skip to content

My solutions to Project Euler problems in multiple languages

License

Notifications You must be signed in to change notification settings

LivInTheLookingGlass/Euler

Repository files navigation

Olivia's Project Euler Solutions

Language Version Solved Status
C C99+ in: clang,
gcc, pcc, & tcc
C11+ in: msvc [1]
Browser [2]
25 Ci
C-Cov
CodeQL
C-lint
C++ C++98+ in:
clang, & gcc
C++14+ in: msvc [1]
Browser [3]
22 Cpi
Cp-Cov
CodeQL
Cp-lint
C​# .NET 2+ 22 C#i
Cs-Cov
CodeQL
C#-lint
Fortran Fortran 95+ in gcc,
flang, nvfortran,
ifx, & ifort
22 Fri
Java Java 8+ in Corretto,
Dragonwell, Liberica,
Microsoft, Oracle,
Semeru, Temurin, & Zulu
22 Javai
Ja-Cov
CodeQL
Java-lint
JavaScript Node 12+
Bun 1.0+
Browser [4]
34 JavaScript
Js-Cov
CodeQL
ESLint
Lua PUC-Rio Lua 5+ [5] 23 Luai
Lu-Cov
LuaCheck
Python CPython 3.6+
Pypy 3.6+
GraalPy 23.1+
Browser [6]
86 Python
Py-Cov
CodeQL
PythonLint
Rust Rust 1.69+
Browser [7]
44 Rust
Rs-Cov
RustClippy
[1](1, 2) This is the earliest standard the MSVC explicitly supports.
[2]While these solutions do run in most browsers, they need to be bundled with Emscripten first, and these tests not yet automated as in clang and gcc. To run these tests yourself, click here! Note that this is an in-progress feature, and some solutions do not work under WebAssembly
[3]While these solutions do run in most browsers, they need to be bundled with Emscripten first, and these tests not yet automated as in clang and gcc. To run these tests yourself, click here! Note that this is an in-progress feature, and some solutions do not work under WebAssembly
[4]While these solutions do run in most browsers, they need to be bundled with WebPack 5.93+ & Babel 7.25+ first, and these tests not yet automated as in Nodejs and Bun. To run these tests yourself, click here!
[5]Mostly due to difficulty testing against older versions
[6]While these solutions do run in most browsers, they need to be bundled with Pyodide 0.26.2+ first, and these tests are not yet automated as in CPython and pypy. To run these tests yourself, click here!
[7]While these solutions do run in most browsers, they need to be bundled with wasm-pack 0.2+ first, and these tests are not yet automated as on non-web platforms. To run these tests yourself, click here!

Coverage

https://codecov.io/github/LivInTheLookingGlass/Euler/graphs/icicle.svg?token=6GHBNILEHG

This is the repository I keep for prospective employers to look at project Euler code that I have written.

This is useful because it has defined problems and answers such that you can compare answers with other people.

All solutions are tested against multiple operating systems and language/compiler versions. For more information, see .github/workflows/

This is NOT meant to help others on Project Euler problems

If you are working on Project Euler problems, DO NOT use this as a source

The repo is divided into sections for each language. The top-level Makefile will direct recipes using prefixes

  • make c_* will go to the c Makefile
  • make cp_* will go to the csharp Makefile
  • make cs_* will go to the csharp Makefile
  • make docs_* will go to the docs Makefile
  • make fr_* will go to the fortran Makefile
  • make ja_* will go to the java Makefile
  • make js_* will go to the javascript Makefile
  • make lu_* will go to the lua Makefile
  • make py_* will go to the python Makefile
  • make rs_* will go to the rust Makefile
  • Any make recipes supported by Sphinx will be redirected to the docs Makefile
  • All other recipes will be run for all languages

For more information, please see the README documents in each section.