Arithmetic numbers: Difference between revisions

Content added Content deleted
(Added Rust solution)
m (Minor edit to C code)
Line 293: Line 293:
printf("\n");
printf("\n");
}
}
if ((arithmetic_count == 1000) || (arithmetic_count == 10000) ||
if (arithmetic_count == 1000 || arithmetic_count == 10000 ||
(arithmetic_count == 100000) || (arithmetic_count == 1000000)) {
arithmetic_count == 100000 || arithmetic_count == 1000000) {
printf("\n%uth arithmetic number is %u\n", arithmetic_count, n);
printf("\n%uth arithmetic number is %u\n", arithmetic_count, n);
printf("Number of composite arithmetic numbers <= %u: %u\n", n,
printf("Number of composite arithmetic numbers <= %u: %u\n", n,