ahmed-moubtahij / Project-Euler

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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>

About

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


Languages

Language:C++ 67.2%Language:CMake 32.8%