Hello

:
I'm new here, and I have been having troubles using the judge: first because I couldn't use java.oi and after because I got a Wrong answer

when I'm really sure my solution works.
So I give you my java code and I hope some of you could help me.
[java]
// @JUDGE_ID: 32852WA 160 Java
import java.io.*;
import java.util.*;
class Main{
int ajuste = 0;
static String ReadLn (int maxLg) // utility function to read from stdin
{
byte lin[] = new byte [maxLg];
int lg = 0, car = -1;
String line = "";
try
{
while (lg < maxLg)
{
car = System.in.read();
if ((car < 0) || (car == '\n')) break;
lin [lg++] += car;
}
}
catch (IOException e)
{
return (null);
}
if ((car < 0) && (lg == 0)) return (null); // eof
return (new String (lin, 0, lg));
}
public static void main (String args[]) throws IOException{
Main funciona = new Main();
funciona.empieza();
}
void empieza(){
String input;
while ((input = Main.ReadLn (255)) != null) {
String linea = input;
StringTokenizer st = new StringTokenizer(linea);
int num = Integer.parseInt(st.nextToken());
ajuste = 0;
if(!(num == 0 || num < 2 || num > 100)){
if(num == 100 ){
System.out.print(num + "!" + " = ");
}else if(num < 100 && num >= 10){
System.out.print(" " + num + "!" + " = ");
}else{
System.out.print(" " + num + "!" + " = ");
}
int primo = 2;
do{
if(primo != 2 && ajuste != 15)
System.out.print(" ");
int veces = cuentaVeces(num, primo);
imprimeVeces(veces);
primo = nextPrimo(primo);
}while(num >= primo);
}else{
break;
}
}
}
int nextPrimo(int n){
int posible = n + 1;
while(true){
for(int i = 2; i < posible; i++){
if(posible % i == 0){
posible++;
i = 2;
}
}
return posible;
}
}
void imprimeVeces(int veces){
if(ajuste == 15){
System.out.print("\n ");
System.out.flush();
ajuste = 0;
}
if(veces < 100 && veces >= 10){
System.out.print(veces + "");
}else{
System.out.print(" " + veces + "");
}
ajuste++;
}
int cuentaVeces(int num, int primo){
int aux = 0;
int primoAux = primo;
while(num >= primo){
aux += num/primo;
primo *= primoAux;
}
return aux;
}
}
[/java]
The messange that I received was:
"Your program has not solved the problem. It ran during 0.008 seconds."
but why??