Module:Math: Difference between revisions

error handling for count
en>Primefac
(better median handling)
en>Primefac
(error handling for count)
Line 241:
local count = #vals
table.sort(vals)
if count == 0 then
return 0
end
if p._mod(count, 2) == 0 then
Anonymous user