Nia
    
     //Hallo Freund Hier ist Ihr Programm. Aber bitte kompilieren Sie es erneut Ich habe es nicht kompiliert. Direkt hier geschrieben.
      
     
java.io.DataInputStream importieren;
      
class Prime{
      
     
public static void main(String[]ar){
      
int I=1,num=0;
      
DataInputStream this=new DataInutStream(System.in);
      
     
boolescher Erfolg=falsch;
      
System.out.println("Geben Sie eine beliebige Zahl ein:");
      
     
while(!Success){
      
  
     
try{
      
  num=Integer.valueOf(this.readLine());
      
  Erfolg = wahr;  
      
  }
      
  catch (Exception E) {
      
  System.out.println (E + "nReEnter Number");
      
}
      
}
      
     
calc NW=new calc();
      
intPr=0;
     
für (I=1;I<=num;I++){
      
  Pr=NW.GetPrime(I);
     
     
  if (Pr>0)
      
  System.out.print("t" + Pr);
     
}
      
     
}
      
     
}
      
class calc{
      
  int GetPrime(int num){
      
int I=0;
     
für (I=2;I<num;I++){
      
  if (num%I==0){
      
  0 zurückgeben;
     
  }
      
     
}
      
Rückgabezahl;    
     
  }
      
}