### Euler project #5 recursion?

I tried to solve the fifth project Euler problem and I wrote the following function to return the j:s that are divisible by some i. This is the function: function smallest(x,j){ debugger if (x >= j) { console.log(“done”) }else { for (var i = 2; i <= 20; i++) { if (j%i != 0) {…

Details