Advertisement
O_Egor

43

May 17th, 2022
684
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {  
  6.    
  7.     for (int i = 135790; i < 163228 + 1; ++i)
  8.     {
  9.         int sum(0), count(0);
  10.         for (int j = 2; j < i; ++j)
  11.         {
  12.             if (i % j == 0)
  13.             {
  14.                 count++;
  15.                 sum += j;
  16.             }
  17.         }
  18.         if (sum > 460000)
  19.             cout << i << "- kol-vo delitelei: " << count << ". Ih summa = " << sum<< '\n';
  20.        
  21.     }
  22.     return 0;
  23. }
Advertisement
RAW Paste Data Copied
Advertisement