I have a program, in which I have to print all prime numbers from 1 to n, and then append them to an array. I do this whit the solve function but the array remains empty. I want to ask why is that?

```
function solve(args){
    var m=new Array();
    for(let a=1;a<=args;a++){
        for(let b=1;b<=Math.sqrt(a);b++){
            if(a%b==0){
                break;
            }
            m.push(a);
        }
    }
}

```