#P1075. [NOIP 2012 普及组] 质因数分解

    ID: 75 远端评测题 1000ms 128MiB 尝试: 2 已通过: 2 难度: 3 上传者: 标签>数学2012NOIp 普及组素数判断,质数,筛法

[NOIP 2012 普及组] 质因数分解

Description

Given a positive integer nn that is the product of two distinct primes, find the larger prime.

Input Format

Input a positive integer nn.

Output Format

Output a positive integer pp, the larger prime.

21
7

Hint

Constraints: 1n2×1091 \le n \le 2 \times 10^9.

NOIP 2012 Junior — Problem 1.

Translated by ChatGPT 5