eolymp
bolt
Try our new interface for solving problems
Problems

Smallest divisor

Smallest divisor

For a given positive integer $n$, print its smallest divisor other than $1$. \InputFile One positive integer $n\:(1 < n < 2^{31})$. \OutputFile Print the smallest divisor of $n$, other than $1$.
Time limit 1 second
Memory limit 128 MiB
Input example #1
21
Output example #1
3
Author Matviychuk Sergiy Volodymyrovych
Source "ABC programming"