There are some ways to do that. If it is necessary to do some operation with these numbers, the best would be to create an array (or list) and save these values. 
If the only intention is to display these values, it is possible to create a string (caractere in Visualg) and concatenate the numbers into it.
As Visualg is for beginners and, by code, it seemed to me that you know arrays. Here is an example using the second option.
Note: Notice that I changed the name of the variables N and C for NumeroEscolhido and Contador. Well-named variables make code more readable and easier to understand.
algoritmo "Nums primos"
var
NumeroEscolhido, Contador, TotNums : inteiro
DivisivelPor : caractere
inicio
   Contador <- 1
   TotNums <- 0
   Escreval ("Digite um numero")
   leia (NumeroEscolhido)
   Enquanto (Contador <= NumeroEscolhido) faca
      Se (NumeroEscolhido % Contador = 0) entao
         TotNums <- TotNums + 1
         DivisivelPor := DivisivelPor + ", " + Contador
      FimSe
      C <- C + 1
   FimEnquanto
   Se (TotNums > 2) entao
      Escreval ("O numero ", NumeroEscolhido, " não é primo, pois ele é divisivel pelos numeros ", DivisivelPor)
   senao
      Escreval ("O numero ", NumeroEscolhido, " é primo.")
   Fimse
fimalgoritmo
Below a Javascript version, so you can run right here and see that it works.
var numeroEscolhido = 12;
var contador = 1;
var totalNums = 0;
var divisivelPor = "";
while(contador <= numeroEscolhido){
  if(numeroEscolhido % contador == 0){
    totalNums += 1;
    divisivelPor += contador + ", ";
  }
  
  contador += 1;
}
if(totalNums > 2){
  console.log("O número " + numeroEscolhido + " não é primo, pois é divisível por " + divisivelPor);
}else{
  console.log("O número " + numeroEscolhido + " é primo");
}
 
 
							
							
						 
You’ve already learned about arrays and/or lists?
– Jéf Bueno