Module:Primes in edo fs: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
local yesno = require("Module:yesno")
local p = {}
local p = {}
local yesno = require("Module:Yesno")


-- greatest common divisor of a and b
-- greatest common divisor of a and b
Line 169: Line 170:
    
    
   local result = edoprox( edo, {unpack(primes, start, start+columns-1)}, title, prec, fs)
   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"])
   return frame:preprocess(debugg == true and "<syntaxhighlight lang=\"wikitext\">" .. result .. "</syntaxhighlight>" or result)
   if debugg == true then
    result = "<syntaxhighlight lang=\"wikitext\">" .. result .. "</syntaxhighlight>"
  end
 
  return frame:preprocess(result)
end
end


return p;
return p