Print some fun information at the end.

This commit is contained in:
Nicolás A. Ortega 2016-12-14 15:29:06 +01:00
parent c2f0fb0ffd
commit d8c81b172b
No known key found for this signature in database
GPG Key ID: 614272579C2070D1

View File

@ -62,15 +62,18 @@ nextPrime:
mpz_add_ui(num, num, 2);
} while(run);
printf("Found %zu primes\n", primes.end);
puts("Clearing memory...");
// Clear GMP variables
mpz_clear(halfNum);
mpz_clear(num);
// Deinitialize the list
deInitList(&primes);
puts("Exit successful.");
return 0;
}
void leave() {
puts("Exiting...\n");
run = false;
}