git @ Cat's Eye Technologies Dipple / master lua / fermat.lua
master

Tree @master (Download .tar.gz)

fermat.lua @masterraw · history · blame

-- SPDX-FileCopyrightText: Chris Pressey, the original author of this work, has dedicated it to the public domain.
-- For more information, please refer to <https://unlicense.org/>
-- SPDX-License-Identifier: Unlicense

t = 46009

n = 215

i = 100

while i > 0 do
	r = n * n
	p = r - t
	s = math.sqrt(p)
	print(n, r, p, s)
	n = n + 1
	i = i - 1
end