Module:Primes in edo fs: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
local yesno = require("Module:Yesno") | |||
-- greatest common divisor of a and b | -- greatest common divisor of a and b | ||
| Line 168: | Line 169: | ||
local fs = (frame.args["fs"] == 1) or (frame.args["fs"] == "1") or false | local fs = (frame.args["fs"] == 1) or (frame.args["fs"] == "1") or false | ||
local | local result = edoprox( edo, {unpack(primes, start, start+columns-1)}, title, prec, fs) | ||
-- debugger option | |||
local debugg = yesno(frame.args["debug"]) | local debugg = yesno(frame.args["debug"]) | ||
if debugg == true then | |||
result = "<syntaxhighlight lang=\"wikitext\">" .. result .. "</syntaxhighlight>" | |||
end | |||
return frame:preprocess(result) | |||
end | end | ||
return p | return p | ||