Please enter your email address or userHandle.
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.
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Login to access your submissions.
Please choose 'ReadOnlyMode' if you needn't to 'Edit' the problem e.g. viewing OJ's solution, TestCase Files (TCFs), TimeLimit etc.