hey doods
i am begginer and i am trying to write a programe which print the first 100 primers numbers.
here is the code - and i don't understand why its not even run...
*****there is a Terminal class which is special but dont mind it is just an input/output class....the bug not that way...
i am realy need help and i don't want to look for programe already done on the net
thank u very much

public class Premiers{
public static void main(String[]args){
int n=2;
boolean p=true;
for(int i=1;i<=100;i=i+1){
for(int d=1;d<n;d=d+1){
if(n%d==0){
p=false;
}
}
if(p!=false){
Terminal.ecrireStringln(n+" est un n.primer");
}
n=n+1;
}
}
}