diff --git a/README.rst b/README.rst index ca5eda02..6d7e5fbe 100644 --- a/README.rst +++ b/README.rst @@ -93,7 +93,7 @@ Olivia's Project Euler Solutions | | Browser [#]_ | | |CodeQL| |br| | | | | | |ESLint| | +------------+----------------------------+--------+-------------------+ - | Lua | Lua 5+ [#]_ | 11 | |Luai| |br| | + | Lua | Lua 5+ [#]_ | 12 | |Luai| |br| | | | | | |LuaCheck| | +------------+----------------------------+--------+-------------------+ | Python | CPython 3.6+ |br| | 80 | |Python| |br| | diff --git a/docs/index.rst b/docs/index.rst index 212470c6..26c889c0 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -89,7 +89,7 @@ Problems Solved +-----------+-----------+------------+------------+------------+------------+------------+------------+------------+ |:prob:`006`|:c-d:`0006`|:cp-d:`0006`|:cs-d:`0006`|:ja-d:`0006`|:js-d:`0006`|:lu-d:`0006`|:py-d:`0006`|:rs-d:`0006`| +-----------+-----------+------------+------------+------------+------------+------------+------------+------------+ - |:prob:`007`|:c-d:`0007`|:cp-d:`0007`|:cs-d:`0007`| |:js-d:`0007`|:lu-i:`0007`|:py-d:`0007`|:rs-d:`0007`| + |:prob:`007`|:c-d:`0007`|:cp-d:`0007`|:cs-d:`0007`| |:js-d:`0007`|:lu-d:`0007`|:py-d:`0007`|:rs-d:`0007`| +-----------+-----------+------------+------------+------------+------------+------------+------------+------------+ |:prob:`008`|:c-d:`0008`|:cp-d:`0008`|:cs-d:`0008`|:ja-d:`0008`|:js-d:`0008`|:lu-d:`0008`|:py-d:`0008`|:rs-d:`0008`| +-----------+-----------+------------+------------+------------+------------+------------+------------+------------+ diff --git a/lua/src/p0007.lua b/lua/src/p0007.lua index 585250ef..2477aed6 100644 --- a/lua/src/p0007.lua +++ b/lua/src/p0007.lua @@ -18,8 +18,7 @@ return { repeat idx = idx + 1 num = pgen.next() - print(num) - until idx > 10001 + until idx > 10000 return num end diff --git a/lua/test.lua b/lua/test.lua index 29b1f990..2ebaa35b 100644 --- a/lua/test.lua +++ b/lua/test.lua @@ -76,13 +76,13 @@ local problems = { ["p0003.lua"] = {6857, false}, ["p0004.lua"] = {906609, false}, ["p0006.lua"] = {25164150, false}, + ["p0007.lua"] = {104743, false}, ["p0008.lua"] = {23514624000, false}, ["p0009.lua"] = {31875000, false}, ["p0017.lua"] = {21124, false}, ["p0028.lua"] = {669171001, false}, ["p0034.lua"] = {40730, false}, ["p0836.lua"] = {"aprilfoolsjoke", false}, - ["p0007.lua"] = {104743, true}, ["p0076.lua"] = {190569291, true}, }