Số nguyên tố

View as PDF

Submit solution

Points: 200.00 (partial)
Time limit: 1.0s
Memory limit: 102M
Input: stdin
Output: stdout

Author:
Problem type

Kiểm tra một số có phải là số nguyên tố hay không ?

INPUT: số nguyên N

OUTPUT: in ra Yes nếu N là số nguyên tố, ngược lại, in ra No

Ràng buộc: ~1<=N <=10^9~

Ví dụ
input
5
output
Yes

Comments

Please read the guidelines before commenting.


There are no comments at the moment.