@@ -0,0 +1,488 @@
+public class Primary%0A%7B%0A    public static void main(String%5B%5D args)%0A    %7B%0A        int a = 1;%0A        StdOut.println(isPrimary(a));%0A        int b = 2;%0A        StdOut.println(isPrimary(b));%0A        int c = 3;%0A        StdOut.println(isPrimary(c));%0A        int d = 4;%0A        StdOut.println(isPrimary(d));%0A    %7D%0A    public static boolean isPrimary(int a)%0A    %7B%0A        if (a%3C2) return false;%0A        for (int i=2; i*i%3C=a; i++)%0A            if (a%25i==0) return false;%0A        return true;%0A    %7D%0A%7D%0A

prime number