Module:Rational: Difference between revisions
m Bugfix |
m Refactoring |
||
Line 468: | Line 468: | ||
end | end | ||
-- preparing the argument | -- preparing the argument | ||
local | local max_prime = p.max_prime(a) | ||
local template_arg = '' | local template_arg = '' | ||
for i = 2, | for i = 2, max_prime do | ||
if u.is_prime(i) then | if u.is_prime(i) then | ||
if i > 2 then template_arg = template_arg .. ' ' end | if i > 2 then template_arg = template_arg .. ' ' end |