#4011: 錯在哪裡?


elsonhao87 (暨大)


import java.util.Scanner;

public class Test
{
    public static void main(String[] argv)
    {
        Scanner input = new Scanner(System.in);
        long a;    
        while(input.hasNext())
        {
            a = input.nextLong();
            if(a%2 != 0 && a >= 2)
                System.out.println("質數");
            else
                System.out.println("非質數");
        }
    }
}
 
我自己測試有過... 交上去就過被wa了~
請各位高手幫幫忙~