PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#SP0000002. Kiểm tra tính nguyên tố (Primality Test)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Kiểm tra tính nguyên tố (Primality Test)

Primality Test

Source: CodeChef

Version: Phuoc Hung OJ Extended

Problem Statement

Alice asks Bob to determine whether a given integer NN is prime. An integer is prime if it is greater than 11 and has no positive divisors other than 11 and itself. Note that 11 is not prime.

Input

One line containing the integer NN to test.

Output

Print yes if NN is prime; otherwise print no. Both words are lowercase.

Subtasks

  • Subtask 1 (20 points): 1≤N≤1001\le N\le 100.
  • Subtask 2 (30 points): 1≤N≤100001\le N\le 10000.
  • Subtask 3 (50 points): 1≤N≤1000001\le N\le 100000.

Examples

Input

23

Output

yes

Explanation

The input integer is N=23N=23. It has no divisor other than 11 and itself, so it is prime. Therefore the output is yes.

Input

20

Output

no

Explanation

The input integer is N=20N=20. It has a proper divisor, so it is not prime. Therefore the output is no.

Input

1

Output

no

Explanation

The input integer is N=1N=1. It is less than 22 and is not prime. Therefore the output is no.