Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Sep 9, 2024
1 parent b928d7b commit 3911420
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lua/src/p0028.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
--
-- What is the sum of the numbers on the diagonals in a 1001 by 1001 spiral formed in the same way?

local range_entry = loadfile("src/lib/range.lua")().range_entry3

return {
solution = function()
local answer = 1
Expand All @@ -61,5 +63,3 @@ return {
return answer
end
}

local range_entry = loadfile("src/lib/range.lua")().range_entry3
2 changes: 1 addition & 1 deletion lua/src/p0034.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ return {
end

if sum == x
do
then
answer = answer + 1
end
end
Expand Down
4 changes: 2 additions & 2 deletions lua/src/p0076.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
--
-- Note: as 1! = 1 and 2! = 2 are not sums they are not included.

local factorial = loadfile('src/lib/math.lua')().factorial

return {
solution = function()
local answer = 0
Expand Down Expand Up @@ -58,5 +60,3 @@ return {
return answer
end
}

local factorial = loadfile('src/lib/math.lua')().factorial

0 comments on commit 3911420

Please sign in to comment.