A collection of interesting coding challenges, mostly inspited by Project Euler.
This repository is structured as a standard Haskell project,
using cabal, as a package manager
and build tool that uses the GHC compiler for Haskell.
The easiest way to get cabal, GHC, and all others relevant to the Haskell toolchain
is using ghcup.
To build the project, run cabal build in the root directory.
To build and run, use cabal run.
All solutions are written in Haskell.
| Problem | Date | Description | Rust | Haskell |
|---|---|---|---|---|
| N/A | 21/06/2023 | Created repository | N/A | N/A |
| #1 | 21/06/2023 | Sum of multiples of 3 or 5 below 1000 (rs, hs) | ||
| #2 | 22/06/2023 | Sum of even terms of fibonacci sequence below 4,000,000 (rs, hs) | ||
| #3 | 23/06/2023 | Largest prime factor of 600851475143 (rs, hs) | ||
| #4 | 24/06/2023 | Largest palindrome made from the product of two 3-digit numbers(rs, hs) | ||
| #5 | 25/06/2023 | Smallest number evenly divisible by all numbers from 1 to 20(rs, hs) | ||
| #6 | 26/06/2023 | Difference between the sum of the squares of the first one hundred natural numbers and the square of the sum (rs, hs) | ||
| #7 | 27/06/2023 | 10001st prime (rs, hs) | ||
| #8 | 28/06/2023 | Largest product in a series (rs, hs) | ||
| #9 | 29/06/2023 | Special Pythagorean triplet that sums up to 1000 (rs, hs) | ||
| #10 | 30/06/2023 | Sum of all primes below two million (rs, hs) |