Is there a better way to write these two nested loops in Erlang?
In general, nested for loops translate well to list comprehensions:

Prods = [I*J || I &lt;- lists:seq(100,999), J &lt;- lists:seq(100,999)]
// Generates a list of products to perform further logic on