Check the given number is prime or not using JAVA regex.
First line consists of T test cases. Only line of every test case consists of an integer N.
Print "1" if the given number statement is prime else 0.
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.