Module:Sandbox/Jackmcbarn/slow

< Module:Sandbox‎ | Jackmcbarn
Revision as of 16:21, 18 April 2014 by imported>Jackmcbarn (don't need this)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Sandbox/Jackmcbarn/slow/doc

for a = 1,10,1 do
	for b = 1,10,1 do
		for c = 1,10,1 do
			for n = 3,10,1 do
				if math.pow(a,n)+math.pow(b,n)==math.pow(c,n) then return {a, b, c, n} end -- this can never happen, but lua has no way of knowing that
			end
		end
	end
end

return {'no solution'}