Số nguyên tố lớn nhất nhỏ hơn N


Submit solution

Points: 1
Time limit: 1.0s
Memory limit: 1G

Problem type

Cho số nguyên dương $N$. Tìm số nguyên tố lớn nhất nhỏ hơn $N$.

Dữ liệu

  • Một số nguyên dương $N$ $(2 < N \le 10^9)$.

Kết quả

  • Kết quả bài toán.

Ví dụ

Ví dụ 1

input

10

output

7

Comments

There are no comments at the moment.