Euler Lua Implementation
Organization
All files share a common prefix with their problem number. All shared functions are moved to files in the include subfolder
Makefile
There are three main recipes in this Makefile
test
Runs the test script
test_*
In most subdirectories this would run tests in parallel, however this is not implemented for lua, and it will be redirected to test
clean
Cleans up any stray files from runtime
Tests
Generic Problems
For each problem it will check the answer against a known dictionary. If the problem is not in the "known slow" category (meaning that I generate the correct answer with a poor solution), it will run it as many times as the benchmark plugin wants. Otherwise it is run exactly once.
A test fails if it gets the wrong answer or if it takes more than 1 minute.
Dependencies
I try to keep the dependencies of this project as small as possible, except for test plugins. At the moment there are no dependencies for this section.
Library Code
Problems Solved
- Lua Implementation of Problem 1
- Lua Implementation of Problem 2
- Lua Implementation of Problem 3
- Lua Implementation of Problem 4
- Lua Implementation of Problem 5
- Lua Implementation of Problem 6
- Lua Implementation of Problem 7
- Lua Implementation of Problem 8
- Lua Implementation of Problem 9
- Lua Implementation of Problem 10
- Lua Implementation of Problem 11
- Lua Implementation of Problem 13
- Lua Implementation of Problem 14
- Lua Implementation of Problem 15
- Lua Implementation of Problem 16
- Lua Implementation of Problem 17
- Lua Implementation of Problem 20
- Lua Implementation of Problem 22
- Lua Implementation of Problem 28
- Lua Implementation of Problem 34
- Lua Implementation of Problem 76
- Lua Implementation of Problem 836