fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int i = 3;
  6. int N;
  7. cin >> N >> i;
  8. if (N % 2 == 0) {
  9. cout << 2;
  10. }
  11. if (N % i == 0) {
  12. cout << i;
  13. i = i + 2;
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5280KB
stdin
25
stdout
Standard output is empty