Idoneal numbers: Difference between revisions
Content added Content deleted
m (→{{header|Lua}}: Minor bug fix - affecting performance but not the output) |
m (→{{header|Lua}}: Doh! not x instead of x == false) |
||
Line 746: | Line 746: | ||
b = b + 1 |
b = b + 1 |
||
end |
end |
||
until sum > n or idoneal |
until sum > n or not idoneal or ab >= n |
||
a = a + 1 |
a = a + 1 |
||
end |
end |