Skip to content

lostflux/criterion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

$\varepsilon$

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.


CHANGELOG

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) $3.7078\ \mu\mathbf{s}$ $46.64\ \mu\mathbf{s}$
#2 22/06/2023 Sum of even terms of fibonacci sequence below 4,000,000 (rs, hs) $19.855\ n\mathbf{s}$ $563.0\ n\mathbf{s}$
#3 23/06/2023 Largest prime factor of 600851475143 (rs, hs) $10.390\ \mu\mathbf{s}$ $26.68\ \mu\mathbf{s}$
#4 24/06/2023 Largest palindrome made from the product of two 3-digit numbers(rs, hs) $74.218\ m\mathbf{s}$ $323.8\ m\mathbf{s}$
#5 25/06/2023 Smallest number evenly divisible by all numbers from 1 to 20(rs, hs) $490.19\ n\mathbf{s}$ $1.315\ \mu\mathbf{s}$
#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) $3.3516\ n\mathbf{s}$ $3.881\ \mu\mathbf{s}$
#7 27/06/2023 10001st prime (rs, hs) $3.1009\ m\mathbf{s}$ $19.63\ \mu\mathbf{s}$
#8 28/06/2023 Largest product in a series (rs, hs) $1.905\ m\mathbf{s}$
#9 29/06/2023 Special Pythagorean triplet that sums up to 1000 (rs, hs) $3.314\ m\mathbf{s}$
#10 30/06/2023 Sum of all primes below two million (rs, hs) $1.550\ m\mathbf{s}$

About

interesting coding challenges.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published