Skip to content

csuzw/project-eulixir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Eulixir

Build Status

An Elixir project framework for solving Project Euler problems.

Prerequisites

You need to have Elixir installed. Please refer to the official guide for instructions.

Running

Problems are located in the /lib/problems/ directory.
To solve a problem, implement the solution/0 method in the appropriate problem module.
If a module does not exist for a problem, run mix compile to build and generate problem modules.

To execute and check solution for a problem, run:

$ mix project_eulixir.solve 123

The task argument is the problem number (in the above example 123).

Known Issues

  • Problem discovery has not been fully implemented yet - only problem 1 is currently available.
  • Sometimes if problem modules have been manually deleted when trying to solve a problem the following error is thrown: (KeyError) key :message not found in: %UndefinedFunctionError{arity: 0, function: :solution, module: Problems.XXX, reason: nil}. To fix run mix clean and retry.

About

An Elixir project framework for solving Project Euler problems.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages