#include <iostream>
using namespace std;
bool p(int n)
{
for(int i = 2;i*i <= n;i++)
{
if(n % i == 0)
return false;
}
return true;
}
int main()
{
int n;
cin >> n;
int i=n;
while(i > 1)
{
if(p(i) == false)
{
i--;
continue;
}
else if(n % i == 0)
{
cout << i << endl;
break;
}
}
return 0;
}
没有输出怎么办呀求大佬。。。qwq