WILL THIS HAVE THE SAME TIME COMPLEXITY?

public static void main(String[]args) {

    // FOR SIZE 25
    boolean temp[]=new boolean[25];
    Arrays.fill(temp,true);

    boolean ans[]=soe(temp,2);
    for(int i=1;i<ans.length;i++){
        if(ans[i]==true)    System.out.print(i+1+" ");
    }
}

static boolean[] soe(boolean board[],int div){
    if(div>Math.floor(Math.sqrt(board.length))){
        return board;
    }

    for(int i=0;i<board.length;i++){
        if(board[i]==true){
            if ((i+1)%div==0 && (i+1)!=div){
                board[i] = false;
            }
        }
    }

    board=soe(board,div+1);
    return board;
}

hey @magnus2001
Yes Same Time Complexity