/Project-Euler

My take on Project Euler with C++20 and range-v3

Primary LanguageC++

How do I use this?

Requirements

  • -std=c++20
  • gcc 10.1
    • msvc hasn't implemented std::ranges yet and clang's std::ranges/concepts seem to be yet incomplete.
  • External dependencies: range-v3 and fmtlib (optional for output display).

Build Instructions

cd path/to/your/folder
git clone https://github.com/Ayenem/Project-Euler.git --recursive
cd Project-Euler
cmake -B build

If you wish to build all targets:

cmake --build build/

If you wish to build a specific single or multiple targets e.g. P1 and P2:

cmake --build build/ --target P1 P2

You may then execute your <target> with

./build/src/<target>