WEBSITE RETURNED, HOWEVER SUBMIT QUANTITY IS RESTRICTED PER DAY TO VERY LITTLE (UNDER JUDGE0 NEW POLICY, API PROVIDER). Therefore it is very much for you to pay attention TEST CAREFULLY CODE BEFORE SUBMIT.

Prime ( hard version )

Threads:Given a number n, Check if the number is prime or not!
Input: A unique number n. n <= 10^18
Output: Yes if it is a prime number, No if it's the opposite.
For example:

input:
3
output:
Yes

You are not logged in? Log in to Submit Now!

Add a Comment