Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- for (int i = 1204300; i <= 1204380; i++) {
- long sumchet = 0;
- for (int j = 2; j <= sqrt(i); j += 2) { //только чётные
- if (i % j == 0) {
- sumchet += j;
- if (j * j != i) {
- sumchet += i/j;
- }
- }
- }
- if (sumchet != 0 && sumchet % 10 == 0)
- cout << i << " " << sumchet << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement