Problem F: Finding The Prime

Xem dạng PDF

Gửi bài giải

Điểm: 1,00
Giới hạn thời gian: 1.0s
Giới hạn bộ nhớ: 512M
Input: stdin
Output: stdout

Tác giả:
Dạng bài

Trong trường hợp đề bài hiển thị không chính xác, bạn có thể tải đề bài tại đây: Đề bài

As the problem's title suggests, in this task, you are given a value n with the requirement to find the largest prime number ~p~ such that ~n~ is divisible by ~p~.


Input

The single value is ~n~ ~(2 ≤ n ≤ 10^4)~ - representing the value ~n~ in the problem statement.


Output

The single value is the largest prime number ~p~ that satisfies the condition mentioned above.

Sample Input 1

30

Sample Ouput 1

5


Bình luận

Hãy đọc nội quy trước khi bình luận.


Không có bình luận tại thời điểm này.