especially for Ainura

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#include <iostream>
using namespace std;
int main(){
int a,b;
cin>>a;
for(int i = 2; i <= a; i++)
{
if (a % i == 0){
b = i;
break;
}
}
cout << b;
return 0;
}