Updated problems to be more in line with conventions

This commit is contained in:
2020-06-19 19:58:36 -04:00
parent 1bfd097fa3
commit 7d107c1071
31 changed files with 174 additions and 182 deletions

View File

@@ -1,7 +1,7 @@
--ProjectEuler/lua/Problem13.lua
--Matthew Ellison
-- Created: 02-07-19
--Modified: 03-28-19
--Modified: 06-19-20
--Work out the first ten digits of the sum of the following one-hundred 50-digit numbers
--[[
37107287533902102798797998220837590246510135740250
@@ -108,7 +108,7 @@
--All of my requires, unless otherwise listed, can be found at https://bitbucket.org/Mattrixwv/luaClasses
--I used the bigint library from https://github.com/empyreuma/bigint.lua
--[[
Copyright (C) 2019 Matthew Ellison
Copyright (C) 2020 Matthew Ellison
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
@@ -129,10 +129,10 @@ require "Stopwatch"
local bigint = require "bigint"
timer = Stopwatch:create();
local timer = Stopwatch:create();
timer:start();
NUMBERS = {};
local NUMBERS = {};
NUMBERS[#NUMBERS+1] = bigint.new("37107287533902102798797998220837590246510135740250")
NUMBERS[#NUMBERS+1] = bigint.new("46376937677490009712648124896970078050417018260538")
NUMBERS[#NUMBERS+1] = bigint.new("74324986199524741059474233309513058123726617309629")