Lucian_Adrian

#3663 ppdp

Nov 2nd, 2021
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #include <iostream>
  2.  
  3.  
  4. using namespace std;
  5.  
  6.  
  7. int main()
  8.  
  9. {
  10.  
  11. int n, d;
  12.  
  13. cin >> n;
  14.  
  15. for (d=2; d<=n/2; d++)
  16.  
  17. if (n%d==0) break;
  18.  
  19. cout << d*d;
  20.  
  21. return 0;
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment