diff --git a/src/main.c b/src/main.c index a4506fa..2e622b8 100644 --- a/src/main.c +++ b/src/main.c @@ -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; }