yerseg

Task_4

May 19th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.16 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5.     int32_t N;
  6.     int32_t p = 2;
  7.     std::cin >> N;
  8.    
  9.     while (N % p != 0)
  10.     {
  11.         p++;
  12.     }
  13.    
  14.     std::cout << p;
  15.     return 0;
  16. }
Add Comment
Please, Sign In to add comment