Galera queria saber se esse algoritmo ta certo...
public class Primos {
int n1;
int total = 0;
int i, j;
String texto;
public void calculaPrimo(){
this.total = this.n1 * 10;
for(this.i = 1;this.i < this.total;this.i++){
for(this.j = 1;this.j < this.i; this.j++){
if(this.j % this.i == 0){
this.texto = " " + this.i;
}
}
}
}
}