The rule is:
a, b, c, d, eis an integer from
1000, no relation between
a, b, c, d, eso
acan equal to
- can not use more than 3 loops (it can be 3 nested loops or 3 normal loops, or 2 nested loops + 1 normal loop, ...)
- you need to find all the answers for
(a, b, c, d, e)that is:
a + b + c + d + e = 1000
Your answer can be any format: line by line, array, object, ... but it must be clear so anyone can see it.
Shortest bytes will be win for each language!
For example here is when I used 5 loops to solve this puzzle and it violates the rules: