Advent of Code 2018
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

13 lines
222 B

#include <stdio.h>
int main()
{
unsigned r0 = 0;
unsigned r1 = 10551300;
for (unsigned r5 = 1; r5 <= r1; r5++) {
if (r1 % r5 == 0) {
r0 = r0 + r5;
}
}
printf("%d\n", r0);
}