Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Is Prime

Limits 1s, 512 MB

Given an integer NN, determine if it is a prime a number.

A number is called prime if it is only divisible by itself.

Input

The input will contain one integer NN (0<N<10000 < N < 1000).

Output

Print Yes\texttt{Yes} if the integer is prime, otherwise No\texttt{No}.

Sample

InputOutput
7
Yes

Discussion

Statistics


94% Solution Ratio

shipansmEarliest, Nov '18

shipansmFastest, 0.0s

CCS_RUSHIKONLightest, 0 B

n4o847Shortest, 26B

Submit

Login to submit

Toph uses cookies. By continuing you agree to our Cookie Policy.