#include <bits/stdc++.h>
using namespace std;
int main()
{
    int N;
    cin>>N;
    int max=0;
    for(int i=2;i<=N;i++)
    {
        while(N%i==0)
        {
            max=i;
            N/=i;
        }
    }
    cout<<max;
    return 0;
}

0 comments

No comments so far...

Information

ID
640
Time
1000ms
Memory
256MiB
Difficulty
7
Tags
# Submissions
32
Accepted
10
Uploaded By