-- set up a table to be used as a modulelocal p =
-- now make a function in the modulep.helloworld = function(frame) name = frame.args.name or "unknown" return "Hello from Lua " .. nameend
p.euler1 = function(limit) total = 0 for i = 1, limit do if (i%3
0) then total = total + i end end return totalend
-- need to return the module for usereturn p