#6620: WA:21


d1288999 (David@@)


import java.util.Scanner;
public class JAVA{

public static void main(String[] args){
Scanner scan = new Scanner(System.in);
long a;
while(scan.hasNext()){
a=scan.nextLong();


int b=0;
long j=(long)Math.sqrt(a)+1;
for(long i=2;i<=j;i++){
 b=0;
   if(a%i==0){b=1;break;}
}

if(b==0){System.out.println("質數");}
else{System.out.println("非質數");}

}
}
}

 

請各位大大幫我看看哪裡錯誤= =

好像知道測資是什麼@@