eolymp
bolt
Try our new interface for solving problems
Problems

Maximum prime factor

Maximum prime factor

Find the largest prime factor of a number $n$. \InputFile One positive integer $n\:(n \le 10^{14})$. \OutputFile Print the largest prime factor of a number $n$.
Time limit 1 second
Memory limit 128 MiB
Input example #1
100
Output example #1
5