For this Question: Given a number (greater than 2), print two prime numbers whose sum will be equal to given number, else print -1 if no such number exists.

NOTE: A solution will always exist if the number is even. Read Goldbach’s conjecture.

If [a, b] is one solution with a <= b, and [c, d] is another solution with c <= d, and a < c then print [a, b] only
and not all possible solutions.The first line contains an integer T, depicting total number of test cases. Then following T lines contains an integer N. 

Constraints: 
1 ≤ T ≤ 100
2 ≤ N ≤ 1000000Print the two prime numbers in a single line with space in between if exist else print -1.Sample Input:
2
8
3

Sample Output:
3 5
-1, I have written this Solution Code: import java.io.*;
import java.util.*;



class Main {
    static boolean isPrime(int n)
    {
        boolean ans=true;
        if(n<=1)
        {
            ans=false;
        }
        else if(n==2 || n==3)
        {
            ans=true;
        }
        else if(n%2==0 || n%3==0)
        {
            ans=false;
        }
        else
        {
            for(int i=5;i*i<=n;i+=6)
            {
                if(n%i==0 || n%(i+2)==0)
                {
                    ans=false;
                    break;
                }
            }
        }
        return ans;
    }
	public static void main (String[] args) throws IOException {
        BufferedReader scan=new BufferedReader(new InputStreamReader(System.in));
        int t=Integer.parseInt(scan.readLine());
        while(t-->0)
        {
            int n=Integer.parseInt(scan.readLine());
            int a=0,b=0;
            if(n%2==1)
            {
                if(isPrime(n-2))
                {
                    a=2;b=n-2;
                }
            }
            else
            {
                for(int i=2;i<=n/2;i++)
                {
                    if(isPrime(i))
                    {
                        if(isPrime(n-i))
                        {
                            a=i;b=n-i;
                            break;
                        }
                    }
                }
            }
            if(a!=0 && b!=0)
            {
                System.out.println(a+" "+b);
            }
            else
            {
                System.out.println(-1);
            }
        }

	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?